...

Source file src/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/geometry.pb.go

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

     1  // Copyright 2018 Google Inc.
     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.26.0
    18  // 	protoc        v3.12.2
    19  // source: google/cloud/vision/v1p2beta1/geometry.proto
    20  
    21  package vision
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    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  // A vertex represents a 2D point in the image.
    39  // NOTE: the vertex coordinates are in the same scale as the original image.
    40  type Vertex struct {
    41  	state         protoimpl.MessageState
    42  	sizeCache     protoimpl.SizeCache
    43  	unknownFields protoimpl.UnknownFields
    44  
    45  	// X coordinate.
    46  	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
    47  	// Y coordinate.
    48  	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
    49  }
    50  
    51  func (x *Vertex) Reset() {
    52  	*x = Vertex{}
    53  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *Vertex) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*Vertex) ProtoMessage() {}
    65  
    66  func (x *Vertex) ProtoReflect() protoreflect.Message {
    67  	mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use Vertex.ProtoReflect.Descriptor instead.
    79  func (*Vertex) Descriptor() ([]byte, []int) {
    80  	return file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *Vertex) GetX() int32 {
    84  	if x != nil {
    85  		return x.X
    86  	}
    87  	return 0
    88  }
    89  
    90  func (x *Vertex) GetY() int32 {
    91  	if x != nil {
    92  		return x.Y
    93  	}
    94  	return 0
    95  }
    96  
    97  // A vertex represents a 2D point in the image.
    98  // NOTE: the normalized vertex coordinates are relative to the original image
    99  // and range from 0 to 1.
   100  type NormalizedVertex struct {
   101  	state         protoimpl.MessageState
   102  	sizeCache     protoimpl.SizeCache
   103  	unknownFields protoimpl.UnknownFields
   104  
   105  	// X coordinate.
   106  	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
   107  	// Y coordinate.
   108  	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
   109  }
   110  
   111  func (x *NormalizedVertex) Reset() {
   112  	*x = NormalizedVertex{}
   113  	if protoimpl.UnsafeEnabled {
   114  		mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[1]
   115  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   116  		ms.StoreMessageInfo(mi)
   117  	}
   118  }
   119  
   120  func (x *NormalizedVertex) String() string {
   121  	return protoimpl.X.MessageStringOf(x)
   122  }
   123  
   124  func (*NormalizedVertex) ProtoMessage() {}
   125  
   126  func (x *NormalizedVertex) ProtoReflect() protoreflect.Message {
   127  	mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[1]
   128  	if protoimpl.UnsafeEnabled && x != nil {
   129  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   130  		if ms.LoadMessageInfo() == nil {
   131  			ms.StoreMessageInfo(mi)
   132  		}
   133  		return ms
   134  	}
   135  	return mi.MessageOf(x)
   136  }
   137  
   138  // Deprecated: Use NormalizedVertex.ProtoReflect.Descriptor instead.
   139  func (*NormalizedVertex) Descriptor() ([]byte, []int) {
   140  	return file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescGZIP(), []int{1}
   141  }
   142  
   143  func (x *NormalizedVertex) GetX() float32 {
   144  	if x != nil {
   145  		return x.X
   146  	}
   147  	return 0
   148  }
   149  
   150  func (x *NormalizedVertex) GetY() float32 {
   151  	if x != nil {
   152  		return x.Y
   153  	}
   154  	return 0
   155  }
   156  
   157  // A bounding polygon for the detected image annotation.
   158  type BoundingPoly struct {
   159  	state         protoimpl.MessageState
   160  	sizeCache     protoimpl.SizeCache
   161  	unknownFields protoimpl.UnknownFields
   162  
   163  	// The bounding polygon vertices.
   164  	Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
   165  	// The bounding polygon normalized vertices.
   166  	NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
   167  }
   168  
   169  func (x *BoundingPoly) Reset() {
   170  	*x = BoundingPoly{}
   171  	if protoimpl.UnsafeEnabled {
   172  		mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[2]
   173  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   174  		ms.StoreMessageInfo(mi)
   175  	}
   176  }
   177  
   178  func (x *BoundingPoly) String() string {
   179  	return protoimpl.X.MessageStringOf(x)
   180  }
   181  
   182  func (*BoundingPoly) ProtoMessage() {}
   183  
   184  func (x *BoundingPoly) ProtoReflect() protoreflect.Message {
   185  	mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[2]
   186  	if protoimpl.UnsafeEnabled && x != nil {
   187  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   188  		if ms.LoadMessageInfo() == nil {
   189  			ms.StoreMessageInfo(mi)
   190  		}
   191  		return ms
   192  	}
   193  	return mi.MessageOf(x)
   194  }
   195  
   196  // Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.
   197  func (*BoundingPoly) Descriptor() ([]byte, []int) {
   198  	return file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescGZIP(), []int{2}
   199  }
   200  
   201  func (x *BoundingPoly) GetVertices() []*Vertex {
   202  	if x != nil {
   203  		return x.Vertices
   204  	}
   205  	return nil
   206  }
   207  
   208  func (x *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
   209  	if x != nil {
   210  		return x.NormalizedVertices
   211  	}
   212  	return nil
   213  }
   214  
   215  // A 3D position in the image, used primarily for Face detection landmarks.
   216  // A valid Position must have both x and y coordinates.
   217  // The position coordinates are in the same scale as the original image.
   218  type Position struct {
   219  	state         protoimpl.MessageState
   220  	sizeCache     protoimpl.SizeCache
   221  	unknownFields protoimpl.UnknownFields
   222  
   223  	// X coordinate.
   224  	X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
   225  	// Y coordinate.
   226  	Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
   227  	// Z coordinate (or depth).
   228  	Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
   229  }
   230  
   231  func (x *Position) Reset() {
   232  	*x = Position{}
   233  	if protoimpl.UnsafeEnabled {
   234  		mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[3]
   235  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   236  		ms.StoreMessageInfo(mi)
   237  	}
   238  }
   239  
   240  func (x *Position) String() string {
   241  	return protoimpl.X.MessageStringOf(x)
   242  }
   243  
   244  func (*Position) ProtoMessage() {}
   245  
   246  func (x *Position) ProtoReflect() protoreflect.Message {
   247  	mi := &file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[3]
   248  	if protoimpl.UnsafeEnabled && x != nil {
   249  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   250  		if ms.LoadMessageInfo() == nil {
   251  			ms.StoreMessageInfo(mi)
   252  		}
   253  		return ms
   254  	}
   255  	return mi.MessageOf(x)
   256  }
   257  
   258  // Deprecated: Use Position.ProtoReflect.Descriptor instead.
   259  func (*Position) Descriptor() ([]byte, []int) {
   260  	return file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescGZIP(), []int{3}
   261  }
   262  
   263  func (x *Position) GetX() float32 {
   264  	if x != nil {
   265  		return x.X
   266  	}
   267  	return 0
   268  }
   269  
   270  func (x *Position) GetY() float32 {
   271  	if x != nil {
   272  		return x.Y
   273  	}
   274  	return 0
   275  }
   276  
   277  func (x *Position) GetZ() float32 {
   278  	if x != nil {
   279  		return x.Z
   280  	}
   281  	return 0
   282  }
   283  
   284  var File_google_cloud_vision_v1p2beta1_geometry_proto protoreflect.FileDescriptor
   285  
   286  var file_google_cloud_vision_v1p2beta1_geometry_proto_rawDesc = []byte{
   287  	0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x76,
   288  	0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
   289  	0x67, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d,
   290  	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73,
   291  	0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x22, 0x24, 0x0a,
   292  	0x06, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01,
   293  	0x28, 0x05, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
   294  	0x52, 0x01, 0x79, 0x22, 0x2e, 0x0a, 0x10, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65,
   295  	0x64, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01,
   296  	0x28, 0x02, 0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02,
   297  	0x52, 0x01, 0x79, 0x22, 0xb3, 0x01, 0x0a, 0x0c, 0x42, 0x6f, 0x75, 0x6e, 0x64, 0x69, 0x6e, 0x67,
   298  	0x50, 0x6f, 0x6c, 0x79, 0x12, 0x41, 0x0a, 0x08, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73,
   299  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
   300  	0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70,
   301  	0x32, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x08, 0x76,
   302  	0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x12, 0x60, 0x0a, 0x13, 0x6e, 0x6f, 0x72, 0x6d, 0x61,
   303  	0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x18, 0x02,
   304  	0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   305  	0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62,
   306  	0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x56,
   307  	0x65, 0x72, 0x74, 0x65, 0x78, 0x52, 0x12, 0x6e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x65,
   308  	0x64, 0x56, 0x65, 0x72, 0x74, 0x69, 0x63, 0x65, 0x73, 0x22, 0x34, 0x0a, 0x08, 0x50, 0x6f, 0x73,
   309  	0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0c, 0x0a, 0x01, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02,
   310  	0x52, 0x01, 0x78, 0x12, 0x0c, 0x0a, 0x01, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01,
   311  	0x79, 0x12, 0x0c, 0x0a, 0x01, 0x7a, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x52, 0x01, 0x7a, 0x42,
   312  	0x7c, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
   313  	0x6f, 0x75, 0x64, 0x2e, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x70, 0x32, 0x62,
   314  	0x65, 0x74, 0x61, 0x31, 0x42, 0x0d, 0x47, 0x65, 0x6f, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x50, 0x72,
   315  	0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
   316  	0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
   317  	0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f,
   318  	0x75, 0x64, 0x2f, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x70, 0x32, 0x62, 0x65,
   319  	0x74, 0x61, 0x31, 0x3b, 0x76, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0xf8, 0x01, 0x01, 0x62, 0x06, 0x70,
   320  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   321  }
   322  
   323  var (
   324  	file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescOnce sync.Once
   325  	file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescData = file_google_cloud_vision_v1p2beta1_geometry_proto_rawDesc
   326  )
   327  
   328  func file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescGZIP() []byte {
   329  	file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescOnce.Do(func() {
   330  		file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescData)
   331  	})
   332  	return file_google_cloud_vision_v1p2beta1_geometry_proto_rawDescData
   333  }
   334  
   335  var file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
   336  var file_google_cloud_vision_v1p2beta1_geometry_proto_goTypes = []interface{}{
   337  	(*Vertex)(nil),           // 0: google.cloud.vision.v1p2beta1.Vertex
   338  	(*NormalizedVertex)(nil), // 1: google.cloud.vision.v1p2beta1.NormalizedVertex
   339  	(*BoundingPoly)(nil),     // 2: google.cloud.vision.v1p2beta1.BoundingPoly
   340  	(*Position)(nil),         // 3: google.cloud.vision.v1p2beta1.Position
   341  }
   342  var file_google_cloud_vision_v1p2beta1_geometry_proto_depIdxs = []int32{
   343  	0, // 0: google.cloud.vision.v1p2beta1.BoundingPoly.vertices:type_name -> google.cloud.vision.v1p2beta1.Vertex
   344  	1, // 1: google.cloud.vision.v1p2beta1.BoundingPoly.normalized_vertices:type_name -> google.cloud.vision.v1p2beta1.NormalizedVertex
   345  	2, // [2:2] is the sub-list for method output_type
   346  	2, // [2:2] is the sub-list for method input_type
   347  	2, // [2:2] is the sub-list for extension type_name
   348  	2, // [2:2] is the sub-list for extension extendee
   349  	0, // [0:2] is the sub-list for field type_name
   350  }
   351  
   352  func init() { file_google_cloud_vision_v1p2beta1_geometry_proto_init() }
   353  func file_google_cloud_vision_v1p2beta1_geometry_proto_init() {
   354  	if File_google_cloud_vision_v1p2beta1_geometry_proto != nil {
   355  		return
   356  	}
   357  	if !protoimpl.UnsafeEnabled {
   358  		file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   359  			switch v := v.(*Vertex); i {
   360  			case 0:
   361  				return &v.state
   362  			case 1:
   363  				return &v.sizeCache
   364  			case 2:
   365  				return &v.unknownFields
   366  			default:
   367  				return nil
   368  			}
   369  		}
   370  		file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   371  			switch v := v.(*NormalizedVertex); i {
   372  			case 0:
   373  				return &v.state
   374  			case 1:
   375  				return &v.sizeCache
   376  			case 2:
   377  				return &v.unknownFields
   378  			default:
   379  				return nil
   380  			}
   381  		}
   382  		file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   383  			switch v := v.(*BoundingPoly); i {
   384  			case 0:
   385  				return &v.state
   386  			case 1:
   387  				return &v.sizeCache
   388  			case 2:
   389  				return &v.unknownFields
   390  			default:
   391  				return nil
   392  			}
   393  		}
   394  		file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   395  			switch v := v.(*Position); i {
   396  			case 0:
   397  				return &v.state
   398  			case 1:
   399  				return &v.sizeCache
   400  			case 2:
   401  				return &v.unknownFields
   402  			default:
   403  				return nil
   404  			}
   405  		}
   406  	}
   407  	type x struct{}
   408  	out := protoimpl.TypeBuilder{
   409  		File: protoimpl.DescBuilder{
   410  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   411  			RawDescriptor: file_google_cloud_vision_v1p2beta1_geometry_proto_rawDesc,
   412  			NumEnums:      0,
   413  			NumMessages:   4,
   414  			NumExtensions: 0,
   415  			NumServices:   0,
   416  		},
   417  		GoTypes:           file_google_cloud_vision_v1p2beta1_geometry_proto_goTypes,
   418  		DependencyIndexes: file_google_cloud_vision_v1p2beta1_geometry_proto_depIdxs,
   419  		MessageInfos:      file_google_cloud_vision_v1p2beta1_geometry_proto_msgTypes,
   420  	}.Build()
   421  	File_google_cloud_vision_v1p2beta1_geometry_proto = out.File
   422  	file_google_cloud_vision_v1p2beta1_geometry_proto_rawDesc = nil
   423  	file_google_cloud_vision_v1p2beta1_geometry_proto_goTypes = nil
   424  	file_google_cloud_vision_v1p2beta1_geometry_proto_depIdxs = nil
   425  }
   426  

View as plain text