...

Source file src/google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1/face.pb.go

Documentation: google.golang.org/genproto/googleapis/cloud/vision/v1p4beta1

     1  // Copyright 2019 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  
    16  // Code generated by protoc-gen-go. DO NOT EDIT.
    17  // versions:
    18  // 	protoc-gen-go v1.26.0
    19  // 	protoc        v3.12.2
    20  // source: google/cloud/vision/v1p4beta1/face.proto
    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  	// Verify that this generated code is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    35  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    36  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    37  )
    38  
    39  // Parameters for a celebrity recognition request.
    40  type FaceRecognitionParams struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// The resource names for one or more
    46  	// [CelebritySet][google.cloud.vision.v1p4beta1.CelebritySet]s. A celebrity
    47  	// set is preloaded and can be specified as "builtin/default". If this is
    48  	// specified, the algorithm will try to match the faces detected in the input
    49  	// image to the Celebrities in the CelebritySets.
    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  // Deprecated: Use FaceRecognitionParams.ProtoReflect.Descriptor instead.
    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  // A Celebrity is a group of Faces with an identity.
    93  type Celebrity struct {
    94  	state         protoimpl.MessageState
    95  	sizeCache     protoimpl.SizeCache
    96  	unknownFields protoimpl.UnknownFields
    97  
    98  	// The resource name of the preloaded Celebrity. Has the format
    99  	// `builtin/{mid}`.
   100  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   101  	// The Celebrity's display name.
   102  	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
   103  	// The Celebrity's description.
   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  // Deprecated: Use Celebrity.ProtoReflect.Descriptor instead.
   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  // Information about a face's identity.
   161  type FaceRecognitionResult struct {
   162  	state         protoimpl.MessageState
   163  	sizeCache     protoimpl.SizeCache
   164  	unknownFields protoimpl.UnknownFields
   165  
   166  	// The [Celebrity][google.cloud.vision.v1p4beta1.Celebrity] that this face was
   167  	// matched to.
   168  	Celebrity *Celebrity `protobuf:"bytes,1,opt,name=celebrity,proto3" json:"celebrity,omitempty"`
   169  	// Recognition confidence. Range [0, 1].
   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  // Deprecated: Use FaceRecognitionResult.ProtoReflect.Descriptor instead.
   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), // 0: google.cloud.vision.v1p4beta1.FaceRecognitionParams
   274  	(*Celebrity)(nil),             // 1: google.cloud.vision.v1p4beta1.Celebrity
   275  	(*FaceRecognitionResult)(nil), // 2: google.cloud.vision.v1p4beta1.FaceRecognitionResult
   276  }
   277  var file_google_cloud_vision_v1p4beta1_face_proto_depIdxs = []int32{
   278  	1, // 0: google.cloud.vision.v1p4beta1.FaceRecognitionResult.celebrity:type_name -> google.cloud.vision.v1p4beta1.Celebrity
   279  	1, // [1:1] is the sub-list for method output_type
   280  	1, // [1:1] is the sub-list for method input_type
   281  	1, // [1:1] is the sub-list for extension type_name
   282  	1, // [1:1] is the sub-list for extension extendee
   283  	0, // [0:1] is the sub-list for field type_name
   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