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.
 
 
 

263 lines
9.3 KiB

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