1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package vision
23
24 import (
25 reflect "reflect"
26 sync "sync"
27
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type FaceRecognitionParams struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46
47
48
49
50 CelebritySet []string `protobuf:"bytes,1,rep,name=celebrity_set,json=celebritySet,proto3" json:"celebrity_set,omitempty"`
51 }
52
53 func (x *FaceRecognitionParams) Reset() {
54 *x = FaceRecognitionParams{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *FaceRecognitionParams) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*FaceRecognitionParams) ProtoMessage() {}
67
68 func (x *FaceRecognitionParams) ProtoReflect() protoreflect.Message {
69 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80
81 func (*FaceRecognitionParams) Descriptor() ([]byte, []int) {
82 return file_google_cloud_vision_v1p4beta1_face_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *FaceRecognitionParams) GetCelebritySet() []string {
86 if x != nil {
87 return x.CelebritySet
88 }
89 return nil
90 }
91
92
93 type Celebrity struct {
94 state protoimpl.MessageState
95 sizeCache protoimpl.SizeCache
96 unknownFields protoimpl.UnknownFields
97
98
99
100 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
101
102 DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
103
104 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
105 }
106
107 func (x *Celebrity) Reset() {
108 *x = Celebrity{}
109 if protoimpl.UnsafeEnabled {
110 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[1]
111 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
112 ms.StoreMessageInfo(mi)
113 }
114 }
115
116 func (x *Celebrity) String() string {
117 return protoimpl.X.MessageStringOf(x)
118 }
119
120 func (*Celebrity) ProtoMessage() {}
121
122 func (x *Celebrity) ProtoReflect() protoreflect.Message {
123 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[1]
124 if protoimpl.UnsafeEnabled && x != nil {
125 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
126 if ms.LoadMessageInfo() == nil {
127 ms.StoreMessageInfo(mi)
128 }
129 return ms
130 }
131 return mi.MessageOf(x)
132 }
133
134
135 func (*Celebrity) Descriptor() ([]byte, []int) {
136 return file_google_cloud_vision_v1p4beta1_face_proto_rawDescGZIP(), []int{1}
137 }
138
139 func (x *Celebrity) GetName() string {
140 if x != nil {
141 return x.Name
142 }
143 return ""
144 }
145
146 func (x *Celebrity) GetDisplayName() string {
147 if x != nil {
148 return x.DisplayName
149 }
150 return ""
151 }
152
153 func (x *Celebrity) GetDescription() string {
154 if x != nil {
155 return x.Description
156 }
157 return ""
158 }
159
160
161 type FaceRecognitionResult struct {
162 state protoimpl.MessageState
163 sizeCache protoimpl.SizeCache
164 unknownFields protoimpl.UnknownFields
165
166
167
168 Celebrity *Celebrity `protobuf:"bytes,1,opt,name=celebrity,proto3" json:"celebrity,omitempty"`
169
170 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
171 }
172
173 func (x *FaceRecognitionResult) Reset() {
174 *x = FaceRecognitionResult{}
175 if protoimpl.UnsafeEnabled {
176 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[2]
177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
178 ms.StoreMessageInfo(mi)
179 }
180 }
181
182 func (x *FaceRecognitionResult) String() string {
183 return protoimpl.X.MessageStringOf(x)
184 }
185
186 func (*FaceRecognitionResult) ProtoMessage() {}
187
188 func (x *FaceRecognitionResult) ProtoReflect() protoreflect.Message {
189 mi := &file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[2]
190 if protoimpl.UnsafeEnabled && x != nil {
191 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
192 if ms.LoadMessageInfo() == nil {
193 ms.StoreMessageInfo(mi)
194 }
195 return ms
196 }
197 return mi.MessageOf(x)
198 }
199
200
201 func (*FaceRecognitionResult) Descriptor() ([]byte, []int) {
202 return file_google_cloud_vision_v1p4beta1_face_proto_rawDescGZIP(), []int{2}
203 }
204
205 func (x *FaceRecognitionResult) GetCelebrity() *Celebrity {
206 if x != nil {
207 return x.Celebrity
208 }
209 return nil
210 }
211
212 func (x *FaceRecognitionResult) GetConfidence() float32 {
213 if x != nil {
214 return x.Confidence
215 }
216 return 0
217 }
218
219 var File_google_cloud_vision_v1p4beta1_face_proto protoreflect.FileDescriptor
220
221 var file_google_cloud_vision_v1p4beta1_face_proto_rawDesc = []byte{
222 0x0a, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
223 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
224 0x66, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67,
225 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e,
226 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
227 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76,
228 0x31, 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72,
229 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3c, 0x0a, 0x15, 0x46, 0x61, 0x63, 0x65, 0x52,
230 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73,
231 0x12, 0x23, 0x0a, 0x0d, 0x63, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x65,
232 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x63, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69,
233 0x74, 0x79, 0x53, 0x65, 0x74, 0x22, 0x64, 0x0a, 0x09, 0x43, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69,
234 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
235 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61,
236 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69,
237 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73,
238 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
239 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x7f, 0x0a, 0x15, 0x46,
240 0x61, 0x63, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x67, 0x6e, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65,
241 0x73, 0x75, 0x6c, 0x74, 0x12, 0x46, 0x0a, 0x09, 0x63, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69, 0x74,
242 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
243 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31,
244 0x70, 0x34, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69, 0x74,
245 0x79, 0x52, 0x09, 0x63, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a,
246 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02,
247 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x64, 0x65, 0x6e, 0x63, 0x65, 0x42, 0x84, 0x01, 0x0a,
248 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
249 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74,
250 0x61, 0x31, 0x42, 0x0e, 0x43, 0x65, 0x6c, 0x65, 0x62, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f,
251 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
252 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
253 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75,
254 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x34, 0x62, 0x65, 0x74,
255 0x61, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x04, 0x47,
256 0x43, 0x56, 0x4e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
257 }
258
259 var (
260 file_google_cloud_vision_v1p4beta1_face_proto_rawDescOnce sync.Once
261 file_google_cloud_vision_v1p4beta1_face_proto_rawDescData = file_google_cloud_vision_v1p4beta1_face_proto_rawDesc
262 )
263
264 func file_google_cloud_vision_v1p4beta1_face_proto_rawDescGZIP() []byte {
265 file_google_cloud_vision_v1p4beta1_face_proto_rawDescOnce.Do(func() {
266 file_google_cloud_vision_v1p4beta1_face_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p4beta1_face_proto_rawDescData)
267 })
268 return file_google_cloud_vision_v1p4beta1_face_proto_rawDescData
269 }
270
271 var file_google_cloud_vision_v1p4beta1_face_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
272 var file_google_cloud_vision_v1p4beta1_face_proto_goTypes = []interface{}{
273 (*FaceRecognitionParams)(nil),
274 (*Celebrity)(nil),
275 (*FaceRecognitionResult)(nil),
276 }
277 var file_google_cloud_vision_v1p4beta1_face_proto_depIdxs = []int32{
278 1,
279 1,
280 1,
281 1,
282 1,
283 0,
284 }
285
286 func init() { file_google_cloud_vision_v1p4beta1_face_proto_init() }
287 func file_google_cloud_vision_v1p4beta1_face_proto_init() {
288 if File_google_cloud_vision_v1p4beta1_face_proto != nil {
289 return
290 }
291 file_google_cloud_vision_v1p4beta1_geometry_proto_init()
292 if !protoimpl.UnsafeEnabled {
293 file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
294 switch v := v.(*FaceRecognitionParams); i {
295 case 0:
296 return &v.state
297 case 1:
298 return &v.sizeCache
299 case 2:
300 return &v.unknownFields
301 default:
302 return nil
303 }
304 }
305 file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
306 switch v := v.(*Celebrity); i {
307 case 0:
308 return &v.state
309 case 1:
310 return &v.sizeCache
311 case 2:
312 return &v.unknownFields
313 default:
314 return nil
315 }
316 }
317 file_google_cloud_vision_v1p4beta1_face_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
318 switch v := v.(*FaceRecognitionResult); i {
319 case 0:
320 return &v.state
321 case 1:
322 return &v.sizeCache
323 case 2:
324 return &v.unknownFields
325 default:
326 return nil
327 }
328 }
329 }
330 type x struct{}
331 out := protoimpl.TypeBuilder{
332 File: protoimpl.DescBuilder{
333 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
334 RawDescriptor: file_google_cloud_vision_v1p4beta1_face_proto_rawDesc,
335 NumEnums: 0,
336 NumMessages: 3,
337 NumExtensions: 0,
338 NumServices: 0,
339 },
340 GoTypes: file_google_cloud_vision_v1p4beta1_face_proto_goTypes,
341 DependencyIndexes: file_google_cloud_vision_v1p4beta1_face_proto_depIdxs,
342 MessageInfos: file_google_cloud_vision_v1p4beta1_face_proto_msgTypes,
343 }.Build()
344 File_google_cloud_vision_v1p4beta1_face_proto = out.File
345 file_google_cloud_vision_v1p4beta1_face_proto_rawDesc = nil
346 file_google_cloud_vision_v1p4beta1_face_proto_goTypes = nil
347 file_google_cloud_vision_v1p4beta1_face_proto_depIdxs = nil
348 }
349
View as plain text