Debian Codegraph @

retail/apiv2beta/retailpb/safety.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/safety.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 // Harm categories that will block the content.
39 type HarmCategory int32
40
41 const (
42 // The harm category is unspecified.
43 HarmCategory_HARM_CATEGORY_UNSPECIFIED HarmCategory = 0
44 // The harm category is hate speech.
45 HarmCategory_HARM_CATEGORY_HATE_SPEECH HarmCategory = 1
46 // The harm category is dangerous content.
47 HarmCategory_HARM_CATEGORY_DANGEROUS_CONTENT HarmCategory = 2
48 // The harm category is harassment.
49 HarmCategory_HARM_CATEGORY_HARASSMENT HarmCategory = 3
50 // The harm category is sexually explicit content.
51 HarmCategory_HARM_CATEGORY_SEXUALLY_EXPLICIT HarmCategory = 4
52 // The harm category is civic integrity.
53 HarmCategory_HARM_CATEGORY_CIVIC_INTEGRITY HarmCategory = 5
54 )
55
56 // Enum value maps for HarmCategory.
57 var (
58 HarmCategory_name = map[int32]string{
59 0: "HARM_CATEGORY_UNSPECIFIED",
60 1: "HARM_CATEGORY_HATE_SPEECH",
61 2: "HARM_CATEGORY_DANGEROUS_CONTENT",
62 3: "HARM_CATEGORY_HARASSMENT",
63 4: "HARM_CATEGORY_SEXUALLY_EXPLICIT",
64 5: "HARM_CATEGORY_CIVIC_INTEGRITY",
65 }
66 HarmCategory_value = map[string]int32{
67 "HARM_CATEGORY_UNSPECIFIED": 0,
68 "HARM_CATEGORY_HATE_SPEECH": 1,
69 "HARM_CATEGORY_DANGEROUS_CONTENT": 2,
70 "HARM_CATEGORY_HARASSMENT": 3,
71 "HARM_CATEGORY_SEXUALLY_EXPLICIT": 4,
72 "HARM_CATEGORY_CIVIC_INTEGRITY": 5,
73 }
74 )
75
76 func (x HarmCategory) Enum() *HarmCategory {
77 p := new(HarmCategory)
78 *p = x
79 return p
80 }
81
82 func (x HarmCategory) String() string {
83 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
84 }
85
86 func (HarmCategory) Descriptor() protoreflect.EnumDescriptor {
87 return file_google_cloud_retail_v2beta_safety_proto_enumTypes[0].Descriptor()
88 }
89
90 func (HarmCategory) Type() protoreflect.EnumType {
91 return &file_google_cloud_retail_v2beta_safety_proto_enumTypes[0]
92 }
93
94 func (x HarmCategory) Number() protoreflect.EnumNumber {
95 return protoreflect.EnumNumber(x)
96 }
97
98 // Deprecated: Use HarmCategory.Descriptor instead.
99 func (HarmCategory) EnumDescriptor() ([]byte, []int) {
100 return file_google_cloud_retail_v2beta_safety_proto_rawDescGZIP(), []int{0}
101 }
102
103 // Probability based thresholds levels for blocking.
104 type SafetySetting_HarmBlockThreshold int32
105
106 const (
107 // Unspecified harm block threshold.
108 SafetySetting_HARM_BLOCK_THRESHOLD_UNSPECIFIED SafetySetting_HarmBlockThreshold = 0
109 // Block low threshold and above (i.e. block more).
110 SafetySetting_BLOCK_LOW_AND_ABOVE SafetySetting_HarmBlockThreshold = 1
111 // Block medium threshold and above.
112 SafetySetting_BLOCK_MEDIUM_AND_ABOVE SafetySetting_HarmBlockThreshold = 2
113 // Block only high threshold (i.e. block less).
114 SafetySetting_BLOCK_ONLY_HIGH SafetySetting_HarmBlockThreshold = 3
115 // Block none.
116 SafetySetting_BLOCK_NONE SafetySetting_HarmBlockThreshold = 4
117 // Turn off the safety filter.
118 SafetySetting_OFF SafetySetting_HarmBlockThreshold = 5
119 )
120
121 // Enum value maps for SafetySetting_HarmBlockThreshold.
122 var (
123 SafetySetting_HarmBlockThreshold_name = map[int32]string{
124 0: "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
125 1: "BLOCK_LOW_AND_ABOVE",
126 2: "BLOCK_MEDIUM_AND_ABOVE",
127 3: "BLOCK_ONLY_HIGH",
128 4: "BLOCK_NONE",
129 5: "OFF",
130 }
131 SafetySetting_HarmBlockThreshold_value = map[string]int32{
132 "HARM_BLOCK_THRESHOLD_UNSPECIFIED": 0,
133 "BLOCK_LOW_AND_ABOVE": 1,
134 "BLOCK_MEDIUM_AND_ABOVE": 2,
135 "BLOCK_ONLY_HIGH": 3,
136 "BLOCK_NONE": 4,
137 "OFF": 5,
138 }
139 )
140
141 func (x SafetySetting_HarmBlockThreshold) Enum() *SafetySetting_HarmBlockThreshold {
142 p := new(SafetySetting_HarmBlockThreshold)
143 *p = x
144 return p
145 }
146
147 func (x SafetySetting_HarmBlockThreshold) String() string {
148 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
149 }
150
151 func (SafetySetting_HarmBlockThreshold) Descriptor() protoreflect.EnumDescriptor {
152 return file_google_cloud_retail_v2beta_safety_proto_enumTypes[1].Descriptor()
153 }
154
155 func (SafetySetting_HarmBlockThreshold) Type() protoreflect.EnumType {
156 return &file_google_cloud_retail_v2beta_safety_proto_enumTypes[1]
157 }
158
159 func (x SafetySetting_HarmBlockThreshold) Number() protoreflect.EnumNumber {
160 return protoreflect.EnumNumber(x)
161 }
162
163 // Deprecated: Use SafetySetting_HarmBlockThreshold.Descriptor instead.
164 func (SafetySetting_HarmBlockThreshold) EnumDescriptor() ([]byte, []int) {
165 return file_google_cloud_retail_v2beta_safety_proto_rawDescGZIP(), []int{0, 0}
166 }
167
168 // Probability vs severity.
169 type SafetySetting_HarmBlockMethod int32
170
171 const (
172 // The harm block method is unspecified.
173 SafetySetting_HARM_BLOCK_METHOD_UNSPECIFIED SafetySetting_HarmBlockMethod = 0
174 // The harm block method uses both probability and severity scores.
175 SafetySetting_SEVERITY SafetySetting_HarmBlockMethod = 1
176 // The harm block method uses the probability score.
177 SafetySetting_PROBABILITY SafetySetting_HarmBlockMethod = 2
178 )
179
180 // Enum value maps for SafetySetting_HarmBlockMethod.
181 var (
182 SafetySetting_HarmBlockMethod_name = map[int32]string{
183 0: "HARM_BLOCK_METHOD_UNSPECIFIED",
184 1: "SEVERITY",
185 2: "PROBABILITY",
186 }
187 SafetySetting_HarmBlockMethod_value = map[string]int32{
188 "HARM_BLOCK_METHOD_UNSPECIFIED": 0,
189 "SEVERITY": 1,
190 "PROBABILITY": 2,
191 }
192 )
193
194 func (x SafetySetting_HarmBlockMethod) Enum() *SafetySetting_HarmBlockMethod {
195 p := new(SafetySetting_HarmBlockMethod)
196 *p = x
197 return p
198 }
199
200 func (x SafetySetting_HarmBlockMethod) String() string {
201 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
202 }
203
204 func (SafetySetting_HarmBlockMethod) Descriptor() protoreflect.EnumDescriptor {
205 return file_google_cloud_retail_v2beta_safety_proto_enumTypes[2].Descriptor()
206 }
207
208 func (SafetySetting_HarmBlockMethod) Type() protoreflect.EnumType {
209 return &file_google_cloud_retail_v2beta_safety_proto_enumTypes[2]
210 }
211
212 func (x SafetySetting_HarmBlockMethod) Number() protoreflect.EnumNumber {
213 return protoreflect.EnumNumber(x)
214 }
215
216 // Deprecated: Use SafetySetting_HarmBlockMethod.Descriptor instead.
217 func (SafetySetting_HarmBlockMethod) EnumDescriptor() ([]byte, []int) {
218 return file_google_cloud_retail_v2beta_safety_proto_rawDescGZIP(), []int{0, 1}
219 }
220
221 // Safety settings.
222 type SafetySetting struct {
223 state protoimpl.MessageState
224 sizeCache protoimpl.SizeCache
225 unknownFields protoimpl.UnknownFields
226
227 // Harm category.
228 Category HarmCategory `protobuf:"varint,1,opt,name=category,proto3,enum=google.cloud.retail.v2beta.HarmCategory" json:"category,omitempty"`
229 // The harm block threshold.
230 Threshold SafetySetting_HarmBlockThreshold `protobuf:"varint,2,opt,name=threshold,proto3,enum=google.cloud.retail.v2beta.SafetySetting_HarmBlockThreshold" json:"threshold,omitempty"`
231 // Optional. Specify if the threshold is used for probability or severity
232 // score. If not specified, the threshold is used for probability score.
233 Method SafetySetting_HarmBlockMethod `protobuf:"varint,3,opt,name=method,proto3,enum=google.cloud.retail.v2beta.SafetySetting_HarmBlockMethod" json:"method,omitempty"`
234 }
235
236 func (x *SafetySetting) Reset() {
237 *x = SafetySetting{}
238 mi := &file_google_cloud_retail_v2beta_safety_proto_msgTypes[0]
239 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240 ms.StoreMessageInfo(mi)
241 }
242
243 func (x *SafetySetting) String() string {
244 return protoimpl.X.MessageStringOf(x)
245 }
246
247 func (*SafetySetting) ProtoMessage() {}
248
249 func (x *SafetySetting) ProtoReflect() protoreflect.Message {
250 mi := &file_google_cloud_retail_v2beta_safety_proto_msgTypes[0]
251 if x != nil {
252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
253 if ms.LoadMessageInfo() == nil {
254 ms.StoreMessageInfo(mi)
255 }
256 return ms
257 }
258 return mi.MessageOf(x)
259 }
260
261 // Deprecated: Use SafetySetting.ProtoReflect.Descriptor instead.
262 func (*SafetySetting) Descriptor() ([]byte, []int) {
263 return file_google_cloud_retail_v2beta_safety_proto_rawDescGZIP(), []int{0}
264 }
265
266 func (x *SafetySetting) GetCategory() HarmCategory {
267 if x != nil {
268 return x.Category
269 }
270 return HarmCategory_HARM_CATEGORY_UNSPECIFIED
271 }
272
273 func (x *SafetySetting) GetThreshold() SafetySetting_HarmBlockThreshold {
274 if x != nil {
275 return x.Threshold
276 }
277 return SafetySetting_HARM_BLOCK_THRESHOLD_UNSPECIFIED
278 }
279
280 func (x *SafetySetting) GetMethod() SafetySetting_HarmBlockMethod {
281 if x != nil {
282 return x.Method
283 }
284 return SafetySetting_HARM_BLOCK_METHOD_UNSPECIFIED
285 }
286
287 var File_google_cloud_retail_v2beta_safety_proto protoreflect.FileDescriptor
288
289 var file_google_cloud_retail_v2beta_safety_proto_rawDesc = []byte{
290 0x0a, 0x27, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
291 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x73, 0x61, 0x66,
292 0x65, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
293 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76,
294 0x32, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
295 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
296 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x03, 0x0a, 0x0d, 0x53, 0x61, 0x66, 0x65, 0x74,
297 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x44, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65,
298 0x67, 0x6f, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f,
299 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
300 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x48, 0x61, 0x72, 0x6d, 0x43, 0x61, 0x74, 0x65,
301 0x67, 0x6f, 0x72, 0x79, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x5a,
302 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
303 0x0e, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
304 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53,
305 0x61, 0x66, 0x65, 0x74, 0x79, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x61, 0x72,
306 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x52,
307 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x56, 0x0a, 0x06, 0x6d, 0x65,
308 0x74, 0x68, 0x6f, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f,
309 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
310 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x53, 0x61, 0x66, 0x65, 0x74, 0x79, 0x53, 0x65,
311 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x48, 0x61, 0x72, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d,
312 0x65, 0x74, 0x68, 0x6f, 0x64, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68,
313 0x6f, 0x64, 0x22, 0x9d, 0x01, 0x0a, 0x12, 0x48, 0x61, 0x72, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b,
314 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x12, 0x24, 0x0a, 0x20, 0x48, 0x41, 0x52,
315 0x4d, 0x5f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x54, 0x48, 0x52, 0x45, 0x53, 0x48, 0x4f, 0x4c,
316 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
317 0x17, 0x0a, 0x13, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4c, 0x4f, 0x57, 0x5f, 0x41, 0x4e, 0x44,
318 0x5f, 0x41, 0x42, 0x4f, 0x56, 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x42, 0x4c, 0x4f, 0x43,
319 0x4b, 0x5f, 0x4d, 0x45, 0x44, 0x49, 0x55, 0x4d, 0x5f, 0x41, 0x4e, 0x44, 0x5f, 0x41, 0x42, 0x4f,
320 0x56, 0x45, 0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x42, 0x4c, 0x4f, 0x43, 0x4b, 0x5f, 0x4f, 0x4e,
321 0x4c, 0x59, 0x5f, 0x48, 0x49, 0x47, 0x48, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x42, 0x4c, 0x4f,
322 0x43, 0x4b, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x04, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x46, 0x46,
323 0x10, 0x05, 0x22, 0x53, 0x0a, 0x0f, 0x48, 0x61, 0x72, 0x6d, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x4d,
324 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x21, 0x0a, 0x1d, 0x48, 0x41, 0x52, 0x4d, 0x5f, 0x42, 0x4c,
325 0x4f, 0x43, 0x4b, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
326 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x45, 0x56, 0x45,
327 0x52, 0x49, 0x54, 0x59, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x50, 0x52, 0x4f, 0x42, 0x41, 0x42,
328 0x49, 0x4c, 0x49, 0x54, 0x59, 0x10, 0x02, 0x2a, 0xd7, 0x01, 0x0a, 0x0c, 0x48, 0x61, 0x72, 0x6d,
329 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x1d, 0x0a, 0x19, 0x48, 0x41, 0x52, 0x4d,
330 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
331 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x1d, 0x0a, 0x19, 0x48, 0x41, 0x52, 0x4d, 0x5f,
332 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x48, 0x41, 0x54, 0x45, 0x5f, 0x53, 0x50,
333 0x45, 0x45, 0x43, 0x48, 0x10, 0x01, 0x12, 0x23, 0x0a, 0x1f, 0x48, 0x41, 0x52, 0x4d, 0x5f, 0x43,
334 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x44, 0x41, 0x4e, 0x47, 0x45, 0x52, 0x4f, 0x55,
335 0x53, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x48,
336 0x41, 0x52, 0x4d, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x48, 0x41, 0x52,
337 0x41, 0x53, 0x53, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x03, 0x12, 0x23, 0x0a, 0x1f, 0x48, 0x41, 0x52,
338 0x4d, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f, 0x53, 0x45, 0x58, 0x55, 0x41,
339 0x4c, 0x4c, 0x59, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x49, 0x43, 0x49, 0x54, 0x10, 0x04, 0x12, 0x21,
340 0x0a, 0x1d, 0x48, 0x41, 0x52, 0x4d, 0x5f, 0x43, 0x41, 0x54, 0x45, 0x47, 0x4f, 0x52, 0x59, 0x5f,
341 0x43, 0x49, 0x56, 0x49, 0x43, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x47, 0x52, 0x49, 0x54, 0x59, 0x10,
342 0x05, 0x42, 0xca, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
343 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32,
344 0x62, 0x65, 0x74, 0x61, 0x42, 0x0b, 0x53, 0x61, 0x66, 0x65, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74,
345 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
346 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f,
347 0x61, 0x70, 0x69, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c,
348 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45,
349 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c,
350 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74,
351 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64,
352 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02,
353 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a,
354 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06,
355 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
356 }
357
358 var (
359 file_google_cloud_retail_v2beta_safety_proto_rawDescOnce sync.Once
360 file_google_cloud_retail_v2beta_safety_proto_rawDescData = file_google_cloud_retail_v2beta_safety_proto_rawDesc
361 )
362
363 func file_google_cloud_retail_v2beta_safety_proto_rawDescGZIP() []byte {
364 file_google_cloud_retail_v2beta_safety_proto_rawDescOnce.Do(func() {
365 file_google_cloud_retail_v2beta_safety_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_safety_proto_rawDescData)
366 })
367 return file_google_cloud_retail_v2beta_safety_proto_rawDescData
368 }
369
370 var file_google_cloud_retail_v2beta_safety_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
371 var file_google_cloud_retail_v2beta_safety_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
372 var file_google_cloud_retail_v2beta_safety_proto_goTypes = []any{
373 (HarmCategory)(0), // 0: google.cloud.retail.v2beta.HarmCategory
374 (SafetySetting_HarmBlockThreshold)(0), // 1: google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold
375 (SafetySetting_HarmBlockMethod)(0), // 2: google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod
376 (*SafetySetting)(nil), // 3: google.cloud.retail.v2beta.SafetySetting
377 }
378 var file_google_cloud_retail_v2beta_safety_proto_depIdxs = []int32{
379 0, // 0: google.cloud.retail.v2beta.SafetySetting.category:type_name -> google.cloud.retail.v2beta.HarmCategory
380 1, // 1: google.cloud.retail.v2beta.SafetySetting.threshold:type_name -> google.cloud.retail.v2beta.SafetySetting.HarmBlockThreshold
381 2, // 2: google.cloud.retail.v2beta.SafetySetting.method:type_name -> google.cloud.retail.v2beta.SafetySetting.HarmBlockMethod
382 3, // [3:3] is the sub-list for method output_type
383 3, // [3:3] is the sub-list for method input_type
384 3, // [3:3] is the sub-list for extension type_name
385 3, // [3:3] is the sub-list for extension extendee
386 0, // [0:3] is the sub-list for field type_name
387 }
388
389 func init() { file_google_cloud_retail_v2beta_safety_proto_init() }
390 func file_google_cloud_retail_v2beta_safety_proto_init() {
391 if File_google_cloud_retail_v2beta_safety_proto != nil {
392 return
393 }
394 type x struct{}
395 out := protoimpl.TypeBuilder{
396 File: protoimpl.DescBuilder{
397 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
398 RawDescriptor: file_google_cloud_retail_v2beta_safety_proto_rawDesc,
399 NumEnums: 3,
400 NumMessages: 1,
401 NumExtensions: 0,
402 NumServices: 0,
403 },
404 GoTypes: file_google_cloud_retail_v2beta_safety_proto_goTypes,
405 DependencyIndexes: file_google_cloud_retail_v2beta_safety_proto_depIdxs,
406 EnumInfos: file_google_cloud_retail_v2beta_safety_proto_enumTypes,
407 MessageInfos: file_google_cloud_retail_v2beta_safety_proto_msgTypes,
408 }.Build()
409 File_google_cloud_retail_v2beta_safety_proto = out.File
410 file_google_cloud_retail_v2beta_safety_proto_rawDesc = nil
411 file_google_cloud_retail_v2beta_safety_proto_goTypes = nil
412 file_google_cloud_retail_v2beta_safety_proto_depIdxs = nil
413 }