You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

265 lines
9.5 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/vision/v1/geometry.proto
  3. package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // A vertex represents a 2D point in the image.
  18. // NOTE: the vertex coordinates are in the same scale as the original image.
  19. type Vertex struct {
  20. // X coordinate.
  21. X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
  22. // Y coordinate.
  23. Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
  24. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  25. XXX_unrecognized []byte `json:"-"`
  26. XXX_sizecache int32 `json:"-"`
  27. }
  28. func (m *Vertex) Reset() { *m = Vertex{} }
  29. func (m *Vertex) String() string { return proto.CompactTextString(m) }
  30. func (*Vertex) ProtoMessage() {}
  31. func (*Vertex) Descriptor() ([]byte, []int) {
  32. return fileDescriptor_geometry_1da1bb7d36959d6f, []int{0}
  33. }
  34. func (m *Vertex) XXX_Unmarshal(b []byte) error {
  35. return xxx_messageInfo_Vertex.Unmarshal(m, b)
  36. }
  37. func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  38. return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
  39. }
  40. func (dst *Vertex) XXX_Merge(src proto.Message) {
  41. xxx_messageInfo_Vertex.Merge(dst, src)
  42. }
  43. func (m *Vertex) XXX_Size() int {
  44. return xxx_messageInfo_Vertex.Size(m)
  45. }
  46. func (m *Vertex) XXX_DiscardUnknown() {
  47. xxx_messageInfo_Vertex.DiscardUnknown(m)
  48. }
  49. var xxx_messageInfo_Vertex proto.InternalMessageInfo
  50. func (m *Vertex) GetX() int32 {
  51. if m != nil {
  52. return m.X
  53. }
  54. return 0
  55. }
  56. func (m *Vertex) GetY() int32 {
  57. if m != nil {
  58. return m.Y
  59. }
  60. return 0
  61. }
  62. // A vertex represents a 2D point in the image.
  63. // NOTE: the normalized vertex coordinates are relative to the original image
  64. // and range from 0 to 1.
  65. type NormalizedVertex struct {
  66. // X coordinate.
  67. X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
  68. // Y coordinate.
  69. Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
  70. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  71. XXX_unrecognized []byte `json:"-"`
  72. XXX_sizecache int32 `json:"-"`
  73. }
  74. func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
  75. func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
  76. func (*NormalizedVertex) ProtoMessage() {}
  77. func (*NormalizedVertex) Descriptor() ([]byte, []int) {
  78. return fileDescriptor_geometry_1da1bb7d36959d6f, []int{1}
  79. }
  80. func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
  81. return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
  82. }
  83. func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  84. return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
  85. }
  86. func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
  87. xxx_messageInfo_NormalizedVertex.Merge(dst, src)
  88. }
  89. func (m *NormalizedVertex) XXX_Size() int {
  90. return xxx_messageInfo_NormalizedVertex.Size(m)
  91. }
  92. func (m *NormalizedVertex) XXX_DiscardUnknown() {
  93. xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
  94. }
  95. var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
  96. func (m *NormalizedVertex) GetX() float32 {
  97. if m != nil {
  98. return m.X
  99. }
  100. return 0
  101. }
  102. func (m *NormalizedVertex) GetY() float32 {
  103. if m != nil {
  104. return m.Y
  105. }
  106. return 0
  107. }
  108. // A bounding polygon for the detected image annotation.
  109. type BoundingPoly struct {
  110. // The bounding polygon vertices.
  111. Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
  112. // The bounding polygon normalized vertices.
  113. NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
  114. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  115. XXX_unrecognized []byte `json:"-"`
  116. XXX_sizecache int32 `json:"-"`
  117. }
  118. func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
  119. func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
  120. func (*BoundingPoly) ProtoMessage() {}
  121. func (*BoundingPoly) Descriptor() ([]byte, []int) {
  122. return fileDescriptor_geometry_1da1bb7d36959d6f, []int{2}
  123. }
  124. func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
  125. return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
  126. }
  127. func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  128. return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
  129. }
  130. func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
  131. xxx_messageInfo_BoundingPoly.Merge(dst, src)
  132. }
  133. func (m *BoundingPoly) XXX_Size() int {
  134. return xxx_messageInfo_BoundingPoly.Size(m)
  135. }
  136. func (m *BoundingPoly) XXX_DiscardUnknown() {
  137. xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
  138. }
  139. var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
  140. func (m *BoundingPoly) GetVertices() []*Vertex {
  141. if m != nil {
  142. return m.Vertices
  143. }
  144. return nil
  145. }
  146. func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
  147. if m != nil {
  148. return m.NormalizedVertices
  149. }
  150. return nil
  151. }
  152. // A 3D position in the image, used primarily for Face detection landmarks.
  153. // A valid Position must have both x and y coordinates.
  154. // The position coordinates are in the same scale as the original image.
  155. type Position struct {
  156. // X coordinate.
  157. X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
  158. // Y coordinate.
  159. Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
  160. // Z coordinate (or depth).
  161. Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
  162. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  163. XXX_unrecognized []byte `json:"-"`
  164. XXX_sizecache int32 `json:"-"`
  165. }
  166. func (m *Position) Reset() { *m = Position{} }
  167. func (m *Position) String() string { return proto.CompactTextString(m) }
  168. func (*Position) ProtoMessage() {}
  169. func (*Position) Descriptor() ([]byte, []int) {
  170. return fileDescriptor_geometry_1da1bb7d36959d6f, []int{3}
  171. }
  172. func (m *Position) XXX_Unmarshal(b []byte) error {
  173. return xxx_messageInfo_Position.Unmarshal(m, b)
  174. }
  175. func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  176. return xxx_messageInfo_Position.Marshal(b, m, deterministic)
  177. }
  178. func (dst *Position) XXX_Merge(src proto.Message) {
  179. xxx_messageInfo_Position.Merge(dst, src)
  180. }
  181. func (m *Position) XXX_Size() int {
  182. return xxx_messageInfo_Position.Size(m)
  183. }
  184. func (m *Position) XXX_DiscardUnknown() {
  185. xxx_messageInfo_Position.DiscardUnknown(m)
  186. }
  187. var xxx_messageInfo_Position proto.InternalMessageInfo
  188. func (m *Position) GetX() float32 {
  189. if m != nil {
  190. return m.X
  191. }
  192. return 0
  193. }
  194. func (m *Position) GetY() float32 {
  195. if m != nil {
  196. return m.Y
  197. }
  198. return 0
  199. }
  200. func (m *Position) GetZ() float32 {
  201. if m != nil {
  202. return m.Z
  203. }
  204. return 0
  205. }
  206. func init() {
  207. proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1.Vertex")
  208. proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1.NormalizedVertex")
  209. proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1.BoundingPoly")
  210. proto.RegisterType((*Position)(nil), "google.cloud.vision.v1.Position")
  211. }
  212. func init() {
  213. proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor_geometry_1da1bb7d36959d6f)
  214. }
  215. var fileDescriptor_geometry_1da1bb7d36959d6f = []byte{
  216. // 300 bytes of a gzipped FileDescriptorProto
  217. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
  218. 0x14, 0xc6, 0x49, 0xa7, 0x63, 0xc4, 0x09, 0x52, 0x41, 0xca, 0x10, 0x19, 0x43, 0xa1, 0xa7, 0x84,
  219. 0xa9, 0x27, 0xf5, 0x54, 0x0f, 0xbb, 0x8d, 0xd2, 0xc3, 0x40, 0x2f, 0x12, 0xdb, 0x10, 0x02, 0x6d,
  220. 0x5e, 0x49, 0xd3, 0xb2, 0xf6, 0xcf, 0x11, 0xfc, 0x1f, 0x3d, 0x4a, 0x9b, 0x52, 0x58, 0x71, 0xde,
  221. 0xf2, 0x25, 0xbf, 0xf7, 0xbd, 0x97, 0xef, 0xe1, 0x3b, 0x01, 0x20, 0x52, 0x4e, 0xe3, 0x14, 0xca,
  222. 0x84, 0x56, 0xb2, 0x90, 0xa0, 0x68, 0xb5, 0xa6, 0x82, 0x43, 0xc6, 0x8d, 0xae, 0x49, 0xae, 0xc1,
  223. 0x80, 0x7b, 0x65, 0x31, 0xd2, 0x61, 0xc4, 0x62, 0xa4, 0x5a, 0x2f, 0xae, 0xfb, 0x72, 0x96, 0x4b,
  224. 0xca, 0x94, 0x02, 0xc3, 0x8c, 0x04, 0x55, 0xd8, 0xaa, 0xd5, 0x2d, 0x9e, 0xee, 0xb8, 0x36, 0x7c,
  225. 0xef, 0xce, 0x31, 0xda, 0x7b, 0x68, 0x89, 0xfc, 0xd3, 0x08, 0x75, 0xaa, 0xf6, 0x1c, 0xab, 0xea,
  226. 0x15, 0xc1, 0x17, 0x5b, 0xd0, 0x19, 0x4b, 0x65, 0xc3, 0x93, 0x31, 0xef, 0x1c, 0xf0, 0x4e, 0xcb,
  227. 0x7f, 0x23, 0x3c, 0x0f, 0xa0, 0x54, 0x89, 0x54, 0x22, 0x84, 0xb4, 0x76, 0x9f, 0xf0, 0xac, 0xe2,
  228. 0xda, 0xc8, 0x98, 0x17, 0x1e, 0x5a, 0x4e, 0xfc, 0xb3, 0xfb, 0x1b, 0xf2, 0xf7, 0xbc, 0xc4, 0xda,
  229. 0x47, 0x03, 0xef, 0xbe, 0xe1, 0x4b, 0x35, 0x34, 0xff, 0x18, 0x6c, 0x9c, 0xce, 0xc6, 0x3f, 0x66,
  230. 0x33, 0x9e, 0x37, 0x72, 0xd5, 0xc1, 0x4d, 0xeb, 0xb1, 0x7a, 0xc4, 0xb3, 0x10, 0x0a, 0xd9, 0x06,
  231. 0xf2, 0xdf, 0x7f, 0x5a, 0xd5, 0x78, 0x13, 0xab, 0x9a, 0xa0, 0xc4, 0x8b, 0x18, 0xb2, 0x23, 0x8d,
  232. 0x83, 0xf3, 0x4d, 0xbf, 0x97, 0xb0, 0x0d, 0x38, 0x44, 0xef, 0x2f, 0x3d, 0x28, 0x20, 0x65, 0x4a,
  233. 0x10, 0xd0, 0x82, 0x0a, 0xae, 0xba, 0xf8, 0xa9, 0x7d, 0x62, 0xb9, 0x2c, 0xc6, 0xeb, 0x7d, 0xb6,
  234. 0xa7, 0x1f, 0x84, 0xbe, 0x9c, 0x93, 0xcd, 0xeb, 0x6e, 0xfb, 0x39, 0xed, 0x4a, 0x1e, 0x7e, 0x03,
  235. 0x00, 0x00, 0xff, 0xff, 0x5b, 0xbb, 0x2b, 0x5f, 0x10, 0x02, 0x00, 0x00,
  236. }