mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
vendor update for CSI 0.3.0
This commit is contained in:
250
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/geometry.pb.go
generated
vendored
250
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/geometry.pb.go
generated
vendored
@ -1,49 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1/geometry.proto
|
||||
|
||||
/*
|
||||
Package vision is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/cloud/vision/v1/geometry.proto
|
||||
google/cloud/vision/v1/image_annotator.proto
|
||||
google/cloud/vision/v1/text_annotation.proto
|
||||
google/cloud/vision/v1/web_detection.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Vertex
|
||||
BoundingPoly
|
||||
Position
|
||||
Feature
|
||||
ImageSource
|
||||
Image
|
||||
FaceAnnotation
|
||||
LocationInfo
|
||||
Property
|
||||
EntityAnnotation
|
||||
SafeSearchAnnotation
|
||||
LatLongRect
|
||||
ColorInfo
|
||||
DominantColorsAnnotation
|
||||
ImageProperties
|
||||
CropHint
|
||||
CropHintsAnnotation
|
||||
CropHintsParams
|
||||
WebDetectionParams
|
||||
ImageContext
|
||||
AnnotateImageRequest
|
||||
AnnotateImageResponse
|
||||
BatchAnnotateImagesRequest
|
||||
BatchAnnotateImagesResponse
|
||||
TextAnnotation
|
||||
Page
|
||||
Block
|
||||
Paragraph
|
||||
Word
|
||||
Symbol
|
||||
WebDetection
|
||||
*/
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -64,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
// NOTE: the vertex coordinates are in the same scale as the original image.
|
||||
type Vertex struct {
|
||||
// X coordinate.
|
||||
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
|
||||
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
|
||||
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0f6b64e4b94968be, []int{0}
|
||||
}
|
||||
func (m *Vertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vertex.Merge(dst, src)
|
||||
}
|
||||
func (m *Vertex) XXX_Size() int {
|
||||
return xxx_messageInfo_Vertex.Size(m)
|
||||
}
|
||||
func (m *Vertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vertex proto.InternalMessageInfo
|
||||
|
||||
func (m *Vertex) GetX() int32 {
|
||||
if m != nil {
|
||||
@ -88,16 +68,91 @@ func (m *Vertex) GetY() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// A vertex represents a 2D point in the image.
|
||||
// NOTE: the normalized vertex coordinates are relative to the original image
|
||||
// and range from 0 to 1.
|
||||
type NormalizedVertex struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
|
||||
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*NormalizedVertex) ProtoMessage() {}
|
||||
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0f6b64e4b94968be, []int{1}
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Size() int {
|
||||
return xxx_messageInfo_NormalizedVertex.Size(m)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
|
||||
|
||||
func (m *NormalizedVertex) GetX() float32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) GetY() float32 {
|
||||
if m != nil {
|
||||
return m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A bounding polygon for the detected image annotation.
|
||||
type BoundingPoly struct {
|
||||
// The bounding polygon vertices.
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||||
// The bounding polygon normalized vertices.
|
||||
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0f6b64e4b94968be, []int{2}
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BoundingPoly.Merge(dst, src)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Size() int {
|
||||
return xxx_messageInfo_BoundingPoly.Size(m)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
|
||||
|
||||
func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
if m != nil {
|
||||
@ -106,22 +161,51 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
|
||||
if m != nil {
|
||||
return m.NormalizedVertices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A 3D position in the image, used primarily for Face detection landmarks.
|
||||
// A valid Position must have both x and y coordinates.
|
||||
// The position coordinates are in the same scale as the original image.
|
||||
type Position struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0f6b64e4b94968be, []int{3}
|
||||
}
|
||||
func (m *Position) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Position.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Position) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Position.Merge(dst, src)
|
||||
}
|
||||
func (m *Position) XXX_Size() int {
|
||||
return xxx_messageInfo_Position.Size(m)
|
||||
}
|
||||
func (m *Position) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Position.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Position proto.InternalMessageInfo
|
||||
|
||||
func (m *Position) GetX() float32 {
|
||||
if m != nil {
|
||||
@ -146,27 +230,33 @@ func (m *Position) GetZ() float32 {
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1.Vertex")
|
||||
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1.NormalizedVertex")
|
||||
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1.BoundingPoly")
|
||||
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1.Position")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 237 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x90, 0x31, 0x4b, 0x03, 0x31,
|
||||
0x14, 0x80, 0x79, 0x57, 0x2c, 0x25, 0xd6, 0xe5, 0x06, 0x39, 0x1c, 0xa4, 0x1c, 0x0a, 0x9d, 0x12,
|
||||
0xaa, 0x4e, 0xea, 0x74, 0x8b, 0xe0, 0x74, 0xdc, 0xe0, 0xe0, 0x56, 0xaf, 0x8f, 0x47, 0xe0, 0x9a,
|
||||
0x57, 0x92, 0x34, 0x34, 0xfd, 0xe5, 0x8e, 0xd2, 0xa4, 0x28, 0x8a, 0xdd, 0xf2, 0x91, 0x8f, 0xf7,
|
||||
0xf1, 0x9e, 0xb8, 0x25, 0x66, 0x1a, 0x50, 0xf5, 0x03, 0x6f, 0x57, 0x2a, 0x68, 0xa7, 0xd9, 0xa8,
|
||||
0xb0, 0x50, 0x84, 0xbc, 0x46, 0x6f, 0xa3, 0xdc, 0x58, 0xf6, 0x5c, 0x5e, 0x66, 0x4d, 0x26, 0x4d,
|
||||
0x66, 0x4d, 0x86, 0x45, 0x7d, 0x23, 0xc6, 0x6f, 0x68, 0x3d, 0xee, 0xca, 0xa9, 0x80, 0x5d, 0x05,
|
||||
0x33, 0x98, 0x9f, 0x75, 0x90, 0x28, 0x56, 0x45, 0xa6, 0x58, 0xbf, 0x8a, 0x69, 0xc3, 0x5b, 0xb3,
|
||||
0xd2, 0x86, 0x5a, 0x1e, 0x62, 0xf9, 0x28, 0x26, 0x01, 0xad, 0xd7, 0x3d, 0xba, 0x0a, 0x66, 0xa3,
|
||||
0xf9, 0xf9, 0xdd, 0xb5, 0xfc, 0x3f, 0x20, 0xf3, 0xf4, 0xee, 0xdb, 0xaf, 0x1f, 0xc4, 0xa4, 0x65,
|
||||
0xa7, 0xbd, 0x66, 0xf3, 0xd3, 0x2c, 0x7e, 0x35, 0x8b, 0x0e, 0xe2, 0x81, 0xf6, 0xd5, 0x28, 0xd3,
|
||||
0xbe, 0x31, 0xe2, 0xaa, 0xe7, 0xf5, 0x89, 0x48, 0x73, 0xf1, 0x72, 0xdc, 0xb6, 0x3d, 0x2c, 0xdb,
|
||||
0xc2, 0xfb, 0xf3, 0x51, 0x24, 0x1e, 0x96, 0x86, 0x24, 0x5b, 0x52, 0x84, 0x26, 0x9d, 0x42, 0xe5,
|
||||
0xaf, 0xe5, 0x46, 0xbb, 0xbf, 0x47, 0x7b, 0xca, 0xaf, 0x4f, 0x80, 0x8f, 0x71, 0x72, 0xef, 0xbf,
|
||||
0x02, 0x00, 0x00, 0xff, 0xff, 0xd0, 0x04, 0x38, 0x95, 0x5f, 0x01, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1/geometry.proto", fileDescriptor_geometry_0f6b64e4b94968be)
|
||||
}
|
||||
|
||||
var fileDescriptor_geometry_0f6b64e4b94968be = []byte{
|
||||
// 285 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0xc3, 0x30,
|
||||
0x14, 0xc7, 0x49, 0xa7, 0x63, 0xc4, 0x09, 0x52, 0x41, 0x8a, 0x07, 0x19, 0x45, 0xa1, 0xa7, 0x84,
|
||||
0xa9, 0x27, 0xf5, 0x54, 0x0f, 0xbb, 0x8d, 0xd2, 0xc3, 0x40, 0x2f, 0x52, 0xdb, 0x10, 0x02, 0x69,
|
||||
0xde, 0x48, 0xd3, 0xb2, 0xf6, 0xe3, 0x08, 0x7e, 0x47, 0x8f, 0xd2, 0x64, 0x14, 0x56, 0x9c, 0xb7,
|
||||
0xfe, 0x9b, 0x5f, 0x7e, 0xef, 0xe5, 0x3d, 0x7c, 0xc7, 0x01, 0xb8, 0x64, 0x34, 0x97, 0x50, 0x17,
|
||||
0xb4, 0x11, 0x95, 0x00, 0x45, 0x9b, 0x25, 0xe5, 0x0c, 0x4a, 0x66, 0x74, 0x4b, 0xb6, 0x1a, 0x0c,
|
||||
0xf8, 0x57, 0x0e, 0x23, 0x16, 0x23, 0x0e, 0x23, 0xcd, 0x32, 0xbc, 0xc5, 0xd3, 0x0d, 0xd3, 0x86,
|
||||
0xed, 0xfc, 0x39, 0x46, 0xbb, 0x00, 0x2d, 0x50, 0x74, 0x9a, 0x22, 0x9b, 0xda, 0xc0, 0x73, 0xa9,
|
||||
0x0d, 0x09, 0xbe, 0x58, 0x83, 0x2e, 0x33, 0x29, 0x3a, 0x56, 0x8c, 0x79, 0xef, 0x80, 0xf7, 0x7a,
|
||||
0xfe, 0x1b, 0xe1, 0x79, 0x0c, 0xb5, 0x2a, 0x84, 0xe2, 0x09, 0xc8, 0xd6, 0x7f, 0xc2, 0xb3, 0x86,
|
||||
0x69, 0x23, 0x72, 0x56, 0x05, 0x68, 0x31, 0x89, 0xce, 0xee, 0x6f, 0xc8, 0xdf, 0x1d, 0x11, 0xa7,
|
||||
0x4f, 0x07, 0xde, 0x7f, 0xc3, 0x97, 0x6a, 0x28, 0xfe, 0x31, 0x68, 0x3c, 0xab, 0x89, 0x8e, 0x69,
|
||||
0xc6, 0xfd, 0xa6, 0xbe, 0x3a, 0xf8, 0xd3, 0x3b, 0xc2, 0x47, 0x3c, 0x4b, 0xa0, 0x12, 0x46, 0x80,
|
||||
0xfa, 0xef, 0x3d, 0x7d, 0xea, 0x82, 0x89, 0x4b, 0x5d, 0x5c, 0xe3, 0xeb, 0x1c, 0xca, 0x23, 0x85,
|
||||
0xe3, 0xf3, 0xd5, 0x7e, 0xf2, 0x49, 0x3f, 0xf8, 0x04, 0xbd, 0xbf, 0xec, 0x41, 0x0e, 0x32, 0x53,
|
||||
0x9c, 0x80, 0xe6, 0x94, 0x33, 0x65, 0xd7, 0x42, 0xdd, 0x51, 0xb6, 0x15, 0xd5, 0x78, 0x81, 0xcf,
|
||||
0xee, 0xeb, 0x07, 0xa1, 0x2f, 0xef, 0x64, 0xf5, 0xba, 0x59, 0x7f, 0x4e, 0xed, 0x95, 0x87, 0xdf,
|
||||
0x00, 0x00, 0x00, 0xff, 0xff, 0xf1, 0x3c, 0x20, 0x46, 0xf2, 0x01, 0x00, 0x00,
|
||||
}
|
||||
|
1851
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/image_annotator.pb.go
generated
vendored
1851
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/image_annotator.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
449
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/text_annotation.pb.go
generated
vendored
449
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/text_annotation.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1/text_annotation.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,6 +13,12 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Enum to denote the type of break found. New line, space etc.
|
||||
type TextAnnotation_DetectedBreak_BreakType int32
|
||||
|
||||
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
|
||||
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
|
||||
}
|
||||
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 1, 0}
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 1, 0}
|
||||
}
|
||||
|
||||
// Type of a block (text, image etc) as identified by OCR.
|
||||
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
|
||||
func (x Block_BlockType) String() string {
|
||||
return proto.EnumName(Block_BlockType_name, int32(x))
|
||||
}
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{2, 0}
|
||||
}
|
||||
|
||||
// TextAnnotation contains a structured representation of OCR extracted text.
|
||||
// The hierarchy of an OCR extracted text structure is like this:
|
||||
@ -105,15 +113,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
|
||||
// detail.
|
||||
type TextAnnotation struct {
|
||||
// List of pages detected by OCR.
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0}
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation) GetPages() []*Page {
|
||||
if m != nil {
|
||||
@ -134,17 +164,37 @@ type TextAnnotation_DetectedLanguage struct {
|
||||
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
||||
// information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
|
||||
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 0}
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 0}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
@ -163,15 +213,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
|
||||
// Detected start or end of a structural component.
|
||||
type TextAnnotation_DetectedBreak struct {
|
||||
// Detected break type.
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
// True if break prepends the element.
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 1}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
|
||||
if m != nil {
|
||||
@ -190,15 +262,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
|
||||
// Additional information detected on the structural component.
|
||||
type TextAnnotation_TextProperty struct {
|
||||
// A list of detected languages together with confidence.
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
|
||||
// Detected start or end of a text segment.
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{0, 2}
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
|
||||
if m != nil {
|
||||
@ -217,21 +311,45 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
|
||||
// Detected page from OCR.
|
||||
type Page struct {
|
||||
// Additional information detected on the page.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
// Page width in pixels.
|
||||
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
|
||||
// Page height in pixels.
|
||||
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// Page width. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// Page height. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
// Confidence of the OCR results on the page. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{1}
|
||||
}
|
||||
func (m *Page) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Page.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Page) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Page.Merge(dst, src)
|
||||
}
|
||||
func (m *Page) XXX_Size() int {
|
||||
return xxx_messageInfo_Page.Size(m)
|
||||
}
|
||||
func (m *Page) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Page.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Page proto.InternalMessageInfo
|
||||
|
||||
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -271,7 +389,7 @@ func (m *Page) GetConfidence() float32 {
|
||||
// Logical element on the page.
|
||||
type Block struct {
|
||||
// Additional information detected for the block.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the block.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -292,19 +410,41 @@ type Block struct {
|
||||
// 1----0
|
||||
//
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of paragraphs in this block (if this blocks is of type text).
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
|
||||
// Detected block type (text, image etc) for this block.
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1.Block_BlockType" json:"block_type,omitempty"`
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1.Block_BlockType" json:"block_type,omitempty"`
|
||||
// Confidence of the OCR results on the block. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{2}
|
||||
}
|
||||
func (m *Block) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Block.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Block) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Block.Merge(dst, src)
|
||||
}
|
||||
func (m *Block) XXX_Size() int {
|
||||
return xxx_messageInfo_Block.Size(m)
|
||||
}
|
||||
func (m *Block) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Block.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Block proto.InternalMessageInfo
|
||||
|
||||
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -344,7 +484,7 @@ func (m *Block) GetConfidence() float32 {
|
||||
// Structural unit of text representing a number of words in certain order.
|
||||
type Paragraph struct {
|
||||
// Additional information detected for the paragraph.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the paragraph.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -360,17 +500,39 @@ type Paragraph struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
|
||||
// Confidence of the OCR results for the paragraph. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{3}
|
||||
}
|
||||
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Paragraph) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Paragraph.Merge(dst, src)
|
||||
}
|
||||
func (m *Paragraph) XXX_Size() int {
|
||||
return xxx_messageInfo_Paragraph.Size(m)
|
||||
}
|
||||
func (m *Paragraph) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Paragraph.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
|
||||
|
||||
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -403,7 +565,7 @@ func (m *Paragraph) GetConfidence() float32 {
|
||||
// A word representation.
|
||||
type Word struct {
|
||||
// Additional information detected for the word.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the word.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -419,18 +581,40 @@ type Word struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of symbols in the word.
|
||||
// The order of the symbols follows the natural reading order.
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
|
||||
// Confidence of the OCR results for the word. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{4}
|
||||
}
|
||||
func (m *Word) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Word.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Word) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Word.Merge(dst, src)
|
||||
}
|
||||
func (m *Word) XXX_Size() int {
|
||||
return xxx_messageInfo_Word.Size(m)
|
||||
}
|
||||
func (m *Word) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Word.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Word proto.InternalMessageInfo
|
||||
|
||||
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -463,7 +647,7 @@ func (m *Word) GetConfidence() float32 {
|
||||
// A single symbol representation.
|
||||
type Symbol struct {
|
||||
// Additional information detected for the symbol.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the symbol.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -479,17 +663,39 @@ type Symbol struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
|
||||
// Confidence of the OCR results for the symbol. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_5ca1a16a28ef616a, []int{5}
|
||||
}
|
||||
func (m *Symbol) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Symbol.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Symbol) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Symbol.Merge(dst, src)
|
||||
}
|
||||
func (m *Symbol) XXX_Size() int {
|
||||
return xxx_messageInfo_Symbol.Size(m)
|
||||
}
|
||||
func (m *Symbol) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Symbol.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Symbol proto.InternalMessageInfo
|
||||
|
||||
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -533,56 +739,59 @@ func init() {
|
||||
proto.RegisterEnum("google.cloud.vision.v1.Block_BlockType", Block_BlockType_name, Block_BlockType_value)
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1/text_annotation.proto", fileDescriptor2) }
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 763 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x4a,
|
||||
0x10, 0x7e, 0x6e, 0xec, 0x34, 0x9e, 0xb4, 0x91, 0xdf, 0xbe, 0xa7, 0x2a, 0x0a, 0xa5, 0x2a, 0x01,
|
||||
0x44, 0x0f, 0xc8, 0x51, 0x53, 0x10, 0x48, 0x20, 0xa4, 0x38, 0x35, 0xb4, 0x6a, 0x94, 0x58, 0xdb,
|
||||
0x44, 0xe5, 0xc7, 0xc1, 0xf2, 0x8f, 0xad, 0x63, 0x35, 0xf5, 0x5a, 0xb6, 0xdb, 0x26, 0xff, 0x0d,
|
||||
0xff, 0x13, 0x12, 0x27, 0xae, 0x9c, 0xb9, 0x02, 0x27, 0xe4, 0xb5, 0x9d, 0x26, 0x01, 0x53, 0x40,
|
||||
0x1c, 0x7a, 0xb1, 0x76, 0x26, 0xdf, 0x7c, 0x33, 0xdf, 0x8c, 0x27, 0x6b, 0xb8, 0xef, 0x50, 0xea,
|
||||
0x8c, 0x48, 0xc3, 0x1a, 0xd1, 0x33, 0xbb, 0x71, 0xee, 0x86, 0x2e, 0xf5, 0x1a, 0xe7, 0xdb, 0x8d,
|
||||
0x88, 0x8c, 0x23, 0xdd, 0xf0, 0x3c, 0x1a, 0x19, 0x91, 0x4b, 0x3d, 0xd9, 0x0f, 0x68, 0x44, 0xd1,
|
||||
0x5a, 0x82, 0x96, 0x19, 0x5a, 0x4e, 0xd0, 0xf2, 0xf9, 0x76, 0x6d, 0x3d, 0x65, 0x31, 0x7c, 0xb7,
|
||||
0x71, 0x19, 0x14, 0x26, 0x51, 0xb5, 0xbb, 0x39, 0x39, 0x1c, 0x42, 0x4f, 0x49, 0x14, 0x4c, 0x12,
|
||||
0x58, 0xfd, 0x13, 0x0f, 0x95, 0x3e, 0x19, 0x47, 0xad, 0x29, 0x01, 0x6a, 0x82, 0xe0, 0x1b, 0x0e,
|
||||
0x09, 0xab, 0xdc, 0x66, 0x61, 0xab, 0xdc, 0x5c, 0x97, 0x7f, 0x9c, 0x5f, 0xd6, 0x0c, 0x87, 0xe0,
|
||||
0x04, 0x8a, 0x10, 0xf0, 0x71, 0xf1, 0xd5, 0xa5, 0x4d, 0x6e, 0x4b, 0xc4, 0xec, 0x5c, 0x3b, 0x02,
|
||||
0x69, 0x97, 0x44, 0xc4, 0x8a, 0x88, 0xdd, 0x31, 0x3c, 0xe7, 0xcc, 0x70, 0x08, 0xba, 0x0d, 0xab,
|
||||
0xa3, 0xf4, 0xac, 0x5b, 0xd4, 0x26, 0x55, 0x8e, 0x05, 0xac, 0x64, 0xce, 0x36, 0xb5, 0x09, 0xda,
|
||||
0x00, 0xb0, 0xa8, 0x77, 0xec, 0xda, 0xc4, 0xb3, 0x08, 0xa3, 0x5c, 0xc2, 0x33, 0x9e, 0xda, 0x47,
|
||||
0x0e, 0x56, 0x33, 0x66, 0x25, 0x20, 0xc6, 0x09, 0xc2, 0xc0, 0x47, 0x13, 0x3f, 0x61, 0xab, 0x34,
|
||||
0x9f, 0xe5, 0x55, 0x3c, 0x2f, 0x54, 0x9e, 0xe3, 0x90, 0xd9, 0xb3, 0x3f, 0xf1, 0x09, 0x66, 0x5c,
|
||||
0xe8, 0x06, 0x88, 0x6e, 0xa8, 0xfb, 0x01, 0x39, 0x76, 0xc7, 0xac, 0x88, 0x12, 0x2e, 0xb9, 0xa1,
|
||||
0xc6, 0xec, 0xba, 0x05, 0xe2, 0x14, 0x8f, 0xca, 0xb0, 0x3c, 0xe8, 0x1e, 0x74, 0x7b, 0x47, 0x5d,
|
||||
0xe9, 0x1f, 0x24, 0x82, 0x70, 0xa8, 0xb5, 0xda, 0xaa, 0xc4, 0xa1, 0x0a, 0xc0, 0xe1, 0x00, 0xab,
|
||||
0x7a, 0x62, 0x2f, 0x21, 0x04, 0x15, 0xb5, 0xd7, 0xd1, 0x67, 0x7c, 0x05, 0x04, 0x50, 0xdc, 0x7b,
|
||||
0xa5, 0xed, 0xa9, 0x5d, 0x89, 0x8f, 0xf1, 0x9d, 0xfd, 0xae, 0xaa, 0x2b, 0x58, 0x6d, 0x1d, 0x48,
|
||||
0x42, 0xed, 0x1d, 0x07, 0x2b, 0x71, 0xc9, 0x5a, 0x40, 0x7d, 0x12, 0x44, 0x13, 0x74, 0x0c, 0xc8,
|
||||
0x4e, 0x6b, 0xd6, 0xb3, 0x8e, 0x65, 0x63, 0x7a, 0xf4, 0x9b, 0xa2, 0xb3, 0x91, 0xe0, 0x7f, 0xed,
|
||||
0x05, 0x4f, 0x88, 0xde, 0x40, 0x65, 0x9a, 0xc7, 0x8c, 0x65, 0x32, 0xfd, 0xe5, 0xe6, 0x83, 0x3f,
|
||||
0x69, 0x2c, 0x5e, 0xb5, 0x67, 0xcd, 0xfa, 0x07, 0x0e, 0xf8, 0xf8, 0xd5, 0x41, 0x3d, 0x28, 0xf9,
|
||||
0xa9, 0x32, 0x36, 0xb8, 0x72, 0x73, 0xe7, 0x17, 0xf9, 0x67, 0x9b, 0x82, 0xa7, 0x24, 0xe8, 0x7f,
|
||||
0x10, 0x2e, 0x5c, 0x3b, 0x1a, 0xb2, 0x6a, 0x05, 0x9c, 0x18, 0x68, 0x0d, 0x8a, 0x43, 0xe2, 0x3a,
|
||||
0xc3, 0xa8, 0x5a, 0x60, 0xee, 0xd4, 0x42, 0x0f, 0xa1, 0x68, 0x8e, 0xa8, 0x75, 0x12, 0x56, 0x79,
|
||||
0xd6, 0xc0, 0x9b, 0x79, 0xc9, 0x95, 0x18, 0x85, 0x53, 0xf0, 0xc2, 0xcb, 0x29, 0x2c, 0xbe, 0x9c,
|
||||
0xf5, 0xb7, 0x05, 0x10, 0x58, 0xc4, 0xdf, 0xd7, 0xf7, 0x02, 0x56, 0x4c, 0x7a, 0xe6, 0xd9, 0xae,
|
||||
0xe7, 0xe8, 0x26, 0x1d, 0xa7, 0x43, 0xb9, 0x93, 0x5b, 0x77, 0x8a, 0xd5, 0xe8, 0x68, 0x82, 0xcb,
|
||||
0x59, 0xa4, 0x42, 0xc7, 0xa8, 0x05, 0xe0, 0x1b, 0x81, 0xe1, 0x04, 0x86, 0x3f, 0x0c, 0xab, 0x05,
|
||||
0x26, 0xff, 0x56, 0xfe, 0x9a, 0xa7, 0x48, 0x3c, 0x13, 0x84, 0x9e, 0x03, 0xb0, 0x86, 0xe8, 0x6c,
|
||||
0xef, 0x78, 0xb6, 0x77, 0xf7, 0x7e, 0xda, 0xc1, 0xe4, 0xc9, 0x16, 0x4c, 0x34, 0xb3, 0xe3, 0x95,
|
||||
0xed, 0xc4, 0x20, 0x4e, 0xe3, 0xe6, 0x17, 0xad, 0x04, 0x7c, 0x5f, 0x7d, 0xd9, 0x97, 0xb8, 0x78,
|
||||
0xe5, 0xfa, 0x2d, 0xa5, 0x13, 0xaf, 0x58, 0x19, 0x96, 0xb5, 0xfd, 0x76, 0x7f, 0x80, 0xe3, 0xdd,
|
||||
0x12, 0x41, 0xc0, 0x83, 0x8e, 0x8a, 0x25, 0x3e, 0xf6, 0x2b, 0x2d, 0xdc, 0xee, 0xed, 0xaa, 0x92,
|
||||
0x50, 0xff, 0xc2, 0x81, 0x38, 0x55, 0x75, 0x8d, 0xc7, 0xd4, 0x04, 0xe1, 0x82, 0x06, 0x76, 0x36,
|
||||
0xa1, 0xdc, 0x3f, 0xe2, 0x23, 0x1a, 0xd8, 0x38, 0x81, 0x2e, 0xf4, 0x93, 0xff, 0xae, 0x9f, 0x5f,
|
||||
0x39, 0xe0, 0x63, 0xfc, 0x35, 0x96, 0xfd, 0x18, 0x96, 0xc3, 0xc9, 0xa9, 0x49, 0x47, 0x99, 0xf0,
|
||||
0x8d, 0x3c, 0x8e, 0x43, 0x06, 0xc3, 0x19, 0xfc, 0x4a, 0xf1, 0xef, 0x39, 0x28, 0x26, 0x31, 0xd7,
|
||||
0x58, 0x7e, 0x76, 0x95, 0x16, 0x2e, 0xaf, 0xd2, 0xab, 0x84, 0x29, 0x11, 0xd4, 0x2c, 0x7a, 0x9a,
|
||||
0x93, 0x4b, 0xf9, 0x6f, 0x5e, 0x81, 0x16, 0x5f, 0xfc, 0x1a, 0xf7, 0xfa, 0x69, 0x0a, 0x77, 0x68,
|
||||
0x7c, 0x97, 0xc8, 0x34, 0x70, 0x1a, 0x0e, 0xf1, 0xd8, 0x67, 0x41, 0x23, 0xf9, 0xc9, 0xf0, 0xdd,
|
||||
0x70, 0xf1, 0x03, 0xe2, 0x49, 0x72, 0xfa, 0xcc, 0x71, 0x66, 0x91, 0x61, 0x77, 0xbe, 0x05, 0x00,
|
||||
0x00, 0xff, 0xff, 0x3f, 0x4a, 0xe7, 0xb0, 0xcf, 0x08, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1/text_annotation.proto", fileDescriptor_text_annotation_5ca1a16a28ef616a)
|
||||
}
|
||||
|
||||
var fileDescriptor_text_annotation_5ca1a16a28ef616a = []byte{
|
||||
// 774 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x6f, 0xd3, 0x58,
|
||||
0x10, 0x5e, 0x27, 0x76, 0x1a, 0x4f, 0xda, 0xc8, 0xfb, 0x76, 0x55, 0x45, 0xd9, 0x6e, 0xd5, 0xcd,
|
||||
0x82, 0xe8, 0x01, 0x39, 0x6a, 0x0a, 0x02, 0x09, 0x84, 0x14, 0xa7, 0xa6, 0xad, 0x1a, 0x25, 0xd6,
|
||||
0x6b, 0x42, 0xf9, 0x71, 0xb0, 0x1c, 0xfb, 0xd5, 0xb1, 0x9a, 0xfa, 0x59, 0xb6, 0xdb, 0x26, 0xe2,
|
||||
0x9f, 0x41, 0xfc, 0x4b, 0x48, 0x9c, 0xb8, 0x72, 0xe6, 0x0a, 0x9c, 0x90, 0x9f, 0xed, 0x34, 0x09,
|
||||
0x98, 0x02, 0xe2, 0xd0, 0x8b, 0xf5, 0x66, 0xf2, 0xcd, 0x37, 0xf3, 0xcd, 0x78, 0xf2, 0x0c, 0xb7,
|
||||
0x6d, 0x4a, 0xed, 0x11, 0xa9, 0x9b, 0x23, 0x7a, 0x66, 0xd5, 0xcf, 0x9d, 0xc0, 0xa1, 0x6e, 0xfd,
|
||||
0x7c, 0xab, 0x1e, 0x92, 0x71, 0xa8, 0x1b, 0xae, 0x4b, 0x43, 0x23, 0x74, 0xa8, 0x2b, 0x7b, 0x3e,
|
||||
0x0d, 0x29, 0x5a, 0x8d, 0xd1, 0x32, 0x43, 0xcb, 0x31, 0x5a, 0x3e, 0xdf, 0xaa, 0xae, 0x25, 0x2c,
|
||||
0x86, 0xe7, 0xd4, 0x2f, 0x83, 0x82, 0x38, 0xaa, 0x7a, 0x33, 0x23, 0x87, 0x4d, 0xe8, 0x29, 0x09,
|
||||
0xfd, 0x49, 0x0c, 0xab, 0x7d, 0xe0, 0xa1, 0xdc, 0x23, 0xe3, 0xb0, 0x39, 0x25, 0x40, 0x0d, 0x10,
|
||||
0x3c, 0xc3, 0x26, 0x41, 0x85, 0xdb, 0xc8, 0x6f, 0x96, 0x1a, 0x6b, 0xf2, 0xb7, 0xf3, 0xcb, 0x9a,
|
||||
0x61, 0x13, 0x1c, 0x43, 0x11, 0x02, 0x3e, 0x2a, 0xbe, 0x92, 0xdb, 0xe0, 0x36, 0x45, 0xcc, 0xce,
|
||||
0xd5, 0x23, 0x90, 0x76, 0x48, 0x48, 0xcc, 0x90, 0x58, 0x6d, 0xc3, 0xb5, 0xcf, 0x0c, 0x9b, 0xa0,
|
||||
0xff, 0x61, 0x65, 0x94, 0x9c, 0x75, 0x93, 0x5a, 0xa4, 0xc2, 0xb1, 0x80, 0xe5, 0xd4, 0xd9, 0xa2,
|
||||
0x16, 0x41, 0xeb, 0x00, 0x26, 0x75, 0x8f, 0x1d, 0x8b, 0xb8, 0x26, 0x61, 0x94, 0x39, 0x3c, 0xe3,
|
||||
0xa9, 0xbe, 0xe7, 0x60, 0x25, 0x65, 0x56, 0x7c, 0x62, 0x9c, 0x20, 0x0c, 0x7c, 0x38, 0xf1, 0x62,
|
||||
0xb6, 0x72, 0xe3, 0x51, 0x56, 0xc5, 0xf3, 0x42, 0xe5, 0x39, 0x0e, 0x99, 0x3d, 0x7b, 0x13, 0x8f,
|
||||
0x60, 0xc6, 0x85, 0xfe, 0x01, 0xd1, 0x09, 0x74, 0xcf, 0x27, 0xc7, 0xce, 0x98, 0x15, 0x51, 0xc4,
|
||||
0x45, 0x27, 0xd0, 0x98, 0x5d, 0x33, 0x41, 0x9c, 0xe2, 0x51, 0x09, 0x96, 0xfa, 0x9d, 0x83, 0x4e,
|
||||
0xf7, 0xa8, 0x23, 0xfd, 0x81, 0x44, 0x10, 0x0e, 0xb5, 0x66, 0x4b, 0x95, 0x38, 0x54, 0x06, 0x38,
|
||||
0xec, 0x63, 0x55, 0x8f, 0xed, 0x1c, 0x42, 0x50, 0x56, 0xbb, 0x6d, 0x7d, 0xc6, 0x97, 0x47, 0x00,
|
||||
0x85, 0xbd, 0x67, 0xda, 0x9e, 0xda, 0x91, 0xf8, 0x08, 0xdf, 0xde, 0xef, 0xa8, 0xba, 0x82, 0xd5,
|
||||
0xe6, 0x81, 0x24, 0x54, 0xdf, 0x70, 0xb0, 0x1c, 0x95, 0xac, 0xf9, 0xd4, 0x23, 0x7e, 0x38, 0x41,
|
||||
0xc7, 0x80, 0xac, 0xa4, 0x66, 0x3d, 0xed, 0x58, 0x3a, 0xa6, 0x7b, 0x3f, 0x29, 0x3a, 0x1d, 0x09,
|
||||
0xfe, 0xd3, 0x5a, 0xf0, 0x04, 0xe8, 0x05, 0x94, 0xa7, 0x79, 0x06, 0x91, 0x4c, 0xa6, 0xbf, 0xd4,
|
||||
0xb8, 0xf3, 0x2b, 0x8d, 0xc5, 0x2b, 0xd6, 0xac, 0x59, 0x7b, 0xc7, 0x01, 0x1f, 0xbd, 0x3a, 0xa8,
|
||||
0x0b, 0x45, 0x2f, 0x51, 0xc6, 0x06, 0x57, 0x6a, 0x6c, 0xff, 0x20, 0xff, 0x6c, 0x53, 0xf0, 0x94,
|
||||
0x04, 0xfd, 0x0d, 0xc2, 0x85, 0x63, 0x85, 0x43, 0x56, 0xad, 0x80, 0x63, 0x03, 0xad, 0x42, 0x61,
|
||||
0x48, 0x1c, 0x7b, 0x18, 0x56, 0xf2, 0xcc, 0x9d, 0x58, 0xe8, 0x2e, 0x14, 0x06, 0x23, 0x6a, 0x9e,
|
||||
0x04, 0x15, 0x9e, 0x35, 0xf0, 0xdf, 0xac, 0xe4, 0x4a, 0x84, 0xc2, 0x09, 0x78, 0xe1, 0xe5, 0x14,
|
||||
0x16, 0x5f, 0xce, 0xda, 0xab, 0x3c, 0x08, 0x2c, 0xe2, 0xf7, 0xeb, 0xdb, 0x85, 0xe5, 0x01, 0x3d,
|
||||
0x73, 0x2d, 0xc7, 0xb5, 0xf5, 0x01, 0x1d, 0x27, 0x43, 0xb9, 0x91, 0x59, 0x77, 0x82, 0xd5, 0xe8,
|
||||
0x68, 0x82, 0x4b, 0x69, 0xa4, 0x42, 0xc7, 0xa8, 0x09, 0xe0, 0x19, 0xbe, 0x61, 0xfb, 0x86, 0x37,
|
||||
0x0c, 0x2a, 0x79, 0x26, 0xff, 0xbf, 0xec, 0x35, 0x4f, 0x90, 0x78, 0x26, 0x08, 0x3d, 0x06, 0x60,
|
||||
0x0d, 0xd1, 0xd9, 0xde, 0xf1, 0x6c, 0xef, 0x6e, 0x7d, 0xb7, 0x83, 0xf1, 0x93, 0x2d, 0x98, 0x38,
|
||||
0x48, 0x8f, 0x57, 0xb6, 0x13, 0x83, 0x38, 0x8d, 0x9b, 0x5f, 0xb4, 0x22, 0xf0, 0x3d, 0xf5, 0x69,
|
||||
0x4f, 0xe2, 0xa2, 0x95, 0xeb, 0x35, 0x95, 0x76, 0xb4, 0x62, 0x25, 0x58, 0xd2, 0xf6, 0x5b, 0xbd,
|
||||
0x3e, 0x8e, 0x76, 0x4b, 0x04, 0x01, 0xf7, 0xdb, 0x2a, 0x96, 0xf8, 0xc8, 0xaf, 0x34, 0x71, 0xab,
|
||||
0xbb, 0xa3, 0x4a, 0x42, 0xed, 0x13, 0x07, 0xe2, 0x54, 0xd5, 0x35, 0x1e, 0x53, 0x03, 0x84, 0x0b,
|
||||
0xea, 0x5b, 0xe9, 0x84, 0x32, 0xff, 0x88, 0x8f, 0xa8, 0x6f, 0xe1, 0x18, 0xba, 0xd0, 0x4f, 0xfe,
|
||||
0xab, 0x7e, 0x7e, 0xe6, 0x80, 0x8f, 0xf0, 0xd7, 0x58, 0xf6, 0x7d, 0x58, 0x0a, 0x26, 0xa7, 0x03,
|
||||
0x3a, 0x4a, 0x85, 0xaf, 0x67, 0x71, 0x1c, 0x32, 0x18, 0x4e, 0xe1, 0x57, 0x8a, 0x7f, 0xcb, 0x41,
|
||||
0x21, 0x8e, 0xb9, 0xc6, 0xf2, 0xd3, 0xab, 0x34, 0x7f, 0x79, 0x95, 0x5e, 0x25, 0x4c, 0x79, 0x09,
|
||||
0x55, 0x93, 0x9e, 0x66, 0xe4, 0x52, 0xfe, 0x9a, 0x57, 0xa0, 0x45, 0x17, 0xbf, 0xc6, 0x3d, 0x7f,
|
||||
0x98, 0xc0, 0x6d, 0x1a, 0xdd, 0x25, 0x32, 0xf5, 0xed, 0xba, 0x4d, 0x5c, 0xf6, 0x59, 0x50, 0x8f,
|
||||
0x7f, 0x32, 0x3c, 0x27, 0x58, 0xfc, 0x80, 0x78, 0x10, 0x9f, 0x3e, 0x72, 0xdc, 0xeb, 0x1c, 0xbf,
|
||||
0xdb, 0x7a, 0xd2, 0x19, 0x14, 0x58, 0xc8, 0xf6, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc4, 0x88,
|
||||
0x57, 0x38, 0xd6, 0x08, 0x00, 0x00,
|
||||
}
|
||||
|
268
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/web_detection.pb.go
generated
vendored
268
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1/web_detection.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1/web_detection.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,29 +13,57 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Relevant information for the image from the Internet.
|
||||
type WebDetection struct {
|
||||
// Deduced entities from similar images on the Internet.
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
|
||||
// Fully matching images from the Internet.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images from the Internet.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
// Web pages containing the matching images from the Internet.
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
|
||||
// The visually similar image results.
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
|
||||
// Best guess text labels for the request image.
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0}
|
||||
}
|
||||
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection.Size(m)
|
||||
}
|
||||
func (m *WebDetection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
|
||||
if m != nil {
|
||||
@ -82,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
|
||||
// Entity deduced from similar images on the Internet.
|
||||
type WebDetection_WebEntity struct {
|
||||
// Opaque entity ID.
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
||||
// Overall relevancy score for the entity.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 0}
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebEntity) GetEntityId() string {
|
||||
if m != nil {
|
||||
@ -119,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
|
||||
// Metadata for online images.
|
||||
type WebDetection_WebImage struct {
|
||||
// The result image URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the image.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 1}
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebImage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -146,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
|
||||
// Metadata for web pages.
|
||||
type WebDetection_WebPage struct {
|
||||
// The result web page URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the web page.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Title for the web page, may contain HTML markups.
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
|
||||
// Fully matching images on the page.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images on the page.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its
|
||||
// crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 2}
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebPage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -204,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
|
||||
// Label to provide extra metadata for the web detection.
|
||||
type WebDetection_WebLabel struct {
|
||||
// Label for extra metadata.
|
||||
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
|
||||
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
||||
// For more information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cd347bf1f824d1ac, []int{0, 3}
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebLabel) GetLabel() string {
|
||||
if m != nil {
|
||||
@ -238,40 +354,42 @@ func init() {
|
||||
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1.WebDetection.WebLabel")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor3) }
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 505 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xd1, 0x8b, 0xd3, 0x4e,
|
||||
0x10, 0xc7, 0x49, 0x7b, 0x77, 0xbf, 0x76, 0xdb, 0x1f, 0x7a, 0xcb, 0xe9, 0x85, 0xa8, 0x50, 0xf4,
|
||||
0xa5, 0x88, 0x26, 0xdc, 0xf9, 0xa8, 0x4f, 0xa7, 0x87, 0x1c, 0x28, 0xd4, 0x28, 0x1c, 0xfa, 0xb2,
|
||||
0x6e, 0x92, 0x35, 0x1d, 0xd8, 0x66, 0x43, 0x76, 0xd3, 0xd2, 0xff, 0xc4, 0xbf, 0xca, 0xbf, 0xc7,
|
||||
0x47, 0x99, 0xdd, 0x8d, 0x94, 0xeb, 0x1d, 0xd4, 0x43, 0x7c, 0x9b, 0x99, 0xcc, 0xf7, 0xf3, 0xdd,
|
||||
0x9d, 0x0c, 0x4b, 0x9e, 0x96, 0x4a, 0x95, 0x52, 0x24, 0xb9, 0x54, 0x6d, 0x91, 0x2c, 0x41, 0x83,
|
||||
0xaa, 0x92, 0xe5, 0x49, 0xb2, 0x12, 0x19, 0x2b, 0x84, 0x11, 0xb9, 0x01, 0x55, 0xc5, 0x75, 0xa3,
|
||||
0x8c, 0xa2, 0xf7, 0x5d, 0x6f, 0x6c, 0x7b, 0x63, 0xd7, 0x1b, 0x2f, 0x4f, 0xa2, 0x87, 0x9e, 0xc1,
|
||||
0x6b, 0x48, 0x78, 0x55, 0x29, 0xc3, 0x51, 0xa4, 0x9d, 0xea, 0xf1, 0x8f, 0x01, 0x19, 0x5f, 0x8a,
|
||||
0xec, 0x4d, 0x07, 0xa3, 0x1f, 0xc8, 0x18, 0xe9, 0xa2, 0x32, 0x60, 0x40, 0xe8, 0x30, 0x98, 0xf4,
|
||||
0xa7, 0xa3, 0xd3, 0x38, 0xbe, 0x9e, 0x1e, 0x6f, 0x6a, 0x31, 0x39, 0x47, 0xdd, 0x3a, 0x1d, 0xad,
|
||||
0x7c, 0x08, 0x42, 0x53, 0x46, 0x8e, 0xbe, 0xb5, 0x52, 0xb2, 0x05, 0x37, 0xf9, 0x1c, 0xaa, 0x92,
|
||||
0xc1, 0x82, 0x97, 0x42, 0x87, 0x3d, 0x8b, 0x7e, 0xbe, 0x2b, 0xfa, 0x02, 0x55, 0x29, 0x45, 0xd4,
|
||||
0x7b, 0x4f, 0xb2, 0x25, 0x4d, 0x05, 0x39, 0xae, 0x79, 0x63, 0x80, 0x6f, 0x7b, 0xf4, 0x6f, 0xe3,
|
||||
0x71, 0xcf, 0xd3, 0xae, 0xd8, 0x00, 0x89, 0x6a, 0x0c, 0xd8, 0x0a, 0xcc, 0x7c, 0xcb, 0x69, 0xcf,
|
||||
0x3a, 0x3d, 0xdb, 0xd5, 0x69, 0x86, 0x46, 0xc7, 0x96, 0x77, 0x09, 0x66, 0xbe, 0x7d, 0xa3, 0x25,
|
||||
0xe8, 0x96, 0x4b, 0xb9, 0x66, 0x1a, 0x16, 0x20, 0x79, 0xd3, 0xf9, 0x1c, 0xdc, 0xea, 0x46, 0x1d,
|
||||
0xed, 0xa3, 0x83, 0x79, 0x9b, 0xcf, 0xe4, 0x30, 0x13, 0xda, 0xb0, 0xb2, 0x15, 0x5a, 0x33, 0xc9,
|
||||
0x33, 0x21, 0x75, 0x38, 0xf8, 0x33, 0x83, 0x77, 0xa8, 0x4a, 0xef, 0x20, 0xe7, 0x2d, 0x62, 0x6c,
|
||||
0xae, 0xa3, 0xaf, 0x64, 0xf8, 0x7b, 0x1d, 0xe8, 0x03, 0x32, 0xb4, 0x0b, 0xb5, 0x66, 0x50, 0x84,
|
||||
0xc1, 0x24, 0x98, 0x0e, 0xd3, 0x81, 0x2b, 0x5c, 0x14, 0xf4, 0x88, 0xec, 0xeb, 0x5c, 0x35, 0x22,
|
||||
0xec, 0x4d, 0x82, 0x69, 0x2f, 0x75, 0x09, 0x9d, 0x90, 0x51, 0x21, 0x74, 0xde, 0x40, 0x8d, 0x46,
|
||||
0x61, 0xdf, 0x8a, 0x36, 0x4b, 0xd1, 0x29, 0x19, 0x74, 0xf7, 0xa3, 0x77, 0x49, 0xbf, 0x6d, 0xa4,
|
||||
0x47, 0x63, 0x78, 0x3d, 0x35, 0xfa, 0xde, 0x23, 0xff, 0xf9, 0xe1, 0xef, 0xaa, 0xa1, 0x8f, 0x08,
|
||||
0xc1, 0xdf, 0xc4, 0x0c, 0x18, 0x29, 0xfc, 0x41, 0x86, 0x58, 0xf9, 0x84, 0x85, 0x1b, 0xb7, 0x7b,
|
||||
0xef, 0x1f, 0x6c, 0xf7, 0xfe, 0xdf, 0xdb, 0xee, 0xe8, 0xdc, 0x8e, 0xd3, 0xfe, 0x3d, 0x1c, 0x84,
|
||||
0x5d, 0x06, 0x3f, 0x1c, 0x97, 0xd0, 0x27, 0xe4, 0x7f, 0xc9, 0xab, 0xb2, 0xc5, 0x61, 0xe4, 0xaa,
|
||||
0x70, 0x63, 0x1a, 0xa6, 0xe3, 0xae, 0xf8, 0x5a, 0x15, 0xe2, 0xac, 0x21, 0x51, 0xae, 0x16, 0x37,
|
||||
0x9c, 0xe8, 0xec, 0x70, 0xf3, 0x48, 0x33, 0x7c, 0x81, 0x66, 0xc1, 0x97, 0x57, 0xbe, 0xb9, 0x54,
|
||||
0x48, 0x8a, 0x55, 0x53, 0x26, 0xa5, 0xa8, 0xec, 0xfb, 0x94, 0xb8, 0x4f, 0xbc, 0x06, 0x7d, 0xf5,
|
||||
0x11, 0x7c, 0xe9, 0xa2, 0x9f, 0x41, 0x90, 0x1d, 0xd8, 0xde, 0x17, 0xbf, 0x02, 0x00, 0x00, 0xff,
|
||||
0xff, 0x1c, 0xe5, 0x3e, 0x5b, 0x2f, 0x05, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1/web_detection.proto", fileDescriptor_web_detection_cd347bf1f824d1ac)
|
||||
}
|
||||
|
||||
var fileDescriptor_web_detection_cd347bf1f824d1ac = []byte{
|
||||
// 512 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x51, 0x6f, 0xd3, 0x30,
|
||||
0x10, 0xc7, 0x95, 0xb6, 0x1b, 0xad, 0x5b, 0x04, 0xb3, 0x06, 0x8b, 0x02, 0x48, 0x15, 0xbc, 0x54,
|
||||
0x08, 0x12, 0x6d, 0x3c, 0xc2, 0xd3, 0xc6, 0x34, 0x4d, 0x02, 0x54, 0x02, 0x62, 0x82, 0x17, 0xe3,
|
||||
0x26, 0x26, 0x3d, 0xc9, 0x8d, 0xa3, 0xd8, 0x69, 0xd5, 0x6f, 0xc2, 0x33, 0x1f, 0x88, 0xcf, 0xc3,
|
||||
0x23, 0x3a, 0xdb, 0x45, 0xd5, 0xba, 0x49, 0x65, 0x42, 0xbc, 0xdd, 0x5d, 0xee, 0xff, 0xfb, 0xdb,
|
||||
0x97, 0x93, 0xc9, 0xd3, 0x42, 0xa9, 0x42, 0x8a, 0x24, 0x93, 0xaa, 0xc9, 0x93, 0x39, 0x68, 0x50,
|
||||
0x65, 0x32, 0x3f, 0x4c, 0x16, 0x62, 0xc2, 0x72, 0x61, 0x44, 0x66, 0x40, 0x95, 0x71, 0x55, 0x2b,
|
||||
0xa3, 0xe8, 0x7d, 0xd7, 0x1b, 0xdb, 0xde, 0xd8, 0xf5, 0xc6, 0xf3, 0xc3, 0xe8, 0xa1, 0x67, 0xf0,
|
||||
0x0a, 0x12, 0x5e, 0x96, 0xca, 0x70, 0x14, 0x69, 0xa7, 0x7a, 0xfc, 0xb3, 0x4b, 0x06, 0x17, 0x62,
|
||||
0xf2, 0x7a, 0x05, 0xa3, 0xef, 0xc9, 0x00, 0xe9, 0xa2, 0x34, 0x60, 0x40, 0xe8, 0x30, 0x18, 0xb6,
|
||||
0x47, 0xfd, 0xa3, 0x38, 0xbe, 0x9a, 0x1e, 0xaf, 0x6b, 0x31, 0x39, 0x45, 0xdd, 0x32, 0xed, 0x2f,
|
||||
0x7c, 0x08, 0x42, 0x53, 0x46, 0xf6, 0xbf, 0x35, 0x52, 0xb2, 0x19, 0x37, 0xd9, 0x14, 0xca, 0x82,
|
||||
0xc1, 0x8c, 0x17, 0x42, 0x87, 0x2d, 0x8b, 0x7e, 0xbe, 0x2d, 0xfa, 0x1c, 0x55, 0x29, 0x45, 0xd4,
|
||||
0x5b, 0x4f, 0xb2, 0x25, 0x4d, 0x05, 0x39, 0xa8, 0x78, 0x6d, 0x80, 0x6f, 0x7a, 0xb4, 0x6f, 0xe2,
|
||||
0x71, 0xcf, 0xd3, 0x2e, 0xd9, 0x00, 0x89, 0x2a, 0x0c, 0xd8, 0x02, 0xcc, 0x74, 0xc3, 0xa9, 0x63,
|
||||
0x9d, 0x9e, 0x6d, 0xeb, 0x34, 0x46, 0xa3, 0x03, 0xcb, 0xbb, 0x00, 0x33, 0xdd, 0xbc, 0xd1, 0x1c,
|
||||
0x74, 0xc3, 0xa5, 0x5c, 0x32, 0x0d, 0x33, 0x90, 0xbc, 0x5e, 0xf9, 0xec, 0xde, 0xe8, 0x46, 0x2b,
|
||||
0xda, 0x07, 0x07, 0xf3, 0x36, 0x9f, 0xc9, 0xde, 0x44, 0x68, 0xc3, 0x8a, 0x46, 0x68, 0xcd, 0x24,
|
||||
0x9f, 0x08, 0xa9, 0xc3, 0xee, 0xdf, 0x19, 0xbc, 0x41, 0x55, 0x7a, 0x07, 0x39, 0x67, 0x88, 0xb1,
|
||||
0xb9, 0x8e, 0xbe, 0x92, 0xde, 0x9f, 0x75, 0xa0, 0x0f, 0x48, 0xcf, 0x2e, 0xd4, 0x92, 0x41, 0x1e,
|
||||
0x06, 0xc3, 0x60, 0xd4, 0x4b, 0xbb, 0xae, 0x70, 0x9e, 0xd3, 0x7d, 0xb2, 0xa3, 0x33, 0x55, 0x8b,
|
||||
0xb0, 0x35, 0x0c, 0x46, 0xad, 0xd4, 0x25, 0x74, 0x48, 0xfa, 0xb9, 0xd0, 0x59, 0x0d, 0x15, 0x1a,
|
||||
0x85, 0x6d, 0x2b, 0x5a, 0x2f, 0x45, 0x47, 0xa4, 0xbb, 0xba, 0x1f, 0xbd, 0x4b, 0xda, 0x4d, 0x2d,
|
||||
0x3d, 0x1a, 0xc3, 0xab, 0xa9, 0xd1, 0xf7, 0x16, 0xb9, 0xe5, 0x87, 0xbf, 0xad, 0x86, 0x3e, 0x22,
|
||||
0x04, 0x7f, 0x13, 0x33, 0x60, 0xa4, 0xf0, 0x07, 0xe9, 0x61, 0xe5, 0x23, 0x16, 0xae, 0xdd, 0xee,
|
||||
0xce, 0x7f, 0xd8, 0xee, 0x9d, 0x7f, 0xb7, 0xdd, 0xd1, 0xa9, 0x1d, 0xa7, 0xfd, 0x7b, 0x38, 0x08,
|
||||
0xbb, 0x0c, 0x7e, 0x38, 0x2e, 0xa1, 0x4f, 0xc8, 0x6d, 0xc9, 0xcb, 0xa2, 0xc1, 0x61, 0x64, 0x2a,
|
||||
0x77, 0x63, 0xea, 0xa5, 0x83, 0x55, 0xf1, 0x44, 0xe5, 0xe2, 0x78, 0x49, 0xa2, 0x4c, 0xcd, 0xae,
|
||||
0x39, 0xd1, 0xf1, 0xde, 0xfa, 0x91, 0xc6, 0xf8, 0x02, 0x8d, 0x83, 0x2f, 0xaf, 0x7c, 0x73, 0xa1,
|
||||
0x90, 0x14, 0xab, 0xba, 0x48, 0x0a, 0x51, 0xda, 0xf7, 0x29, 0x71, 0x9f, 0x78, 0x05, 0xfa, 0xf2,
|
||||
0x23, 0xf8, 0xd2, 0x45, 0xbf, 0x82, 0xe0, 0x47, 0xab, 0x73, 0x76, 0xf2, 0xe9, 0xdd, 0x64, 0xd7,
|
||||
0x4a, 0x5e, 0xfc, 0x0e, 0x00, 0x00, 0xff, 0xff, 0x99, 0x1b, 0x06, 0x03, 0x36, 0x05, 0x00, 0x00,
|
||||
}
|
||||
|
152
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/geometry.pb.go
generated
vendored
152
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/geometry.pb.go
generated
vendored
@ -1,49 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p1beta1/geometry.proto
|
||||
|
||||
/*
|
||||
Package vision is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/cloud/vision/v1p1beta1/geometry.proto
|
||||
google/cloud/vision/v1p1beta1/image_annotator.proto
|
||||
google/cloud/vision/v1p1beta1/text_annotation.proto
|
||||
google/cloud/vision/v1p1beta1/web_detection.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Vertex
|
||||
BoundingPoly
|
||||
Position
|
||||
Feature
|
||||
ImageSource
|
||||
Image
|
||||
FaceAnnotation
|
||||
LocationInfo
|
||||
Property
|
||||
EntityAnnotation
|
||||
SafeSearchAnnotation
|
||||
LatLongRect
|
||||
ColorInfo
|
||||
DominantColorsAnnotation
|
||||
ImageProperties
|
||||
CropHint
|
||||
CropHintsAnnotation
|
||||
CropHintsParams
|
||||
WebDetectionParams
|
||||
ImageContext
|
||||
AnnotateImageRequest
|
||||
AnnotateImageResponse
|
||||
BatchAnnotateImagesRequest
|
||||
BatchAnnotateImagesResponse
|
||||
TextAnnotation
|
||||
Page
|
||||
Block
|
||||
Paragraph
|
||||
Word
|
||||
Symbol
|
||||
WebDetection
|
||||
*/
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -64,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
// NOTE: the vertex coordinates are in the same scale as the original image.
|
||||
type Vertex struct {
|
||||
// X coordinate.
|
||||
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
|
||||
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
|
||||
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_9a7190aad6b30813, []int{0}
|
||||
}
|
||||
func (m *Vertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vertex.Merge(dst, src)
|
||||
}
|
||||
func (m *Vertex) XXX_Size() int {
|
||||
return xxx_messageInfo_Vertex.Size(m)
|
||||
}
|
||||
func (m *Vertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vertex proto.InternalMessageInfo
|
||||
|
||||
func (m *Vertex) GetX() int32 {
|
||||
if m != nil {
|
||||
@ -91,13 +71,35 @@ func (m *Vertex) GetY() int32 {
|
||||
// A bounding polygon for the detected image annotation.
|
||||
type BoundingPoly struct {
|
||||
// The bounding polygon vertices.
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_9a7190aad6b30813, []int{1}
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BoundingPoly.Merge(dst, src)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Size() int {
|
||||
return xxx_messageInfo_BoundingPoly.Size(m)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
|
||||
|
||||
func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
if m != nil {
|
||||
@ -111,17 +113,39 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
// The position coordinates are in the same scale as the original image.
|
||||
type Position struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_9a7190aad6b30813, []int{2}
|
||||
}
|
||||
func (m *Position) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Position.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Position) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Position.Merge(dst, src)
|
||||
}
|
||||
func (m *Position) XXX_Size() int {
|
||||
return xxx_messageInfo_Position.Size(m)
|
||||
}
|
||||
func (m *Position) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Position.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Position proto.InternalMessageInfo
|
||||
|
||||
func (m *Position) GetX() float32 {
|
||||
if m != nil {
|
||||
@ -150,9 +174,11 @@ func init() {
|
||||
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p1beta1.Position")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/geometry.proto", fileDescriptor0) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p1beta1/geometry.proto", fileDescriptor_geometry_9a7190aad6b30813)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
var fileDescriptor_geometry_9a7190aad6b30813 = []byte{
|
||||
// 243 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc3, 0x40,
|
||||
0x14, 0x87, 0x79, 0x29, 0x96, 0x72, 0xd6, 0x25, 0x53, 0x16, 0xa1, 0x06, 0x85, 0x0e, 0x72, 0x47,
|
||||
|
856
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go
generated
vendored
856
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/image_annotator.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
340
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go
generated
vendored
340
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/text_annotation.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p1beta1/text_annotation.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,6 +13,12 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Enum to denote the type of break found. New line, space etc.
|
||||
type TextAnnotation_DetectedBreak_BreakType int32
|
||||
|
||||
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
|
||||
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
|
||||
}
|
||||
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 1, 0}
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 1, 0}
|
||||
}
|
||||
|
||||
// Type of a block (text, image etc) as identified by OCR.
|
||||
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
|
||||
func (x Block_BlockType) String() string {
|
||||
return proto.EnumName(Block_BlockType_name, int32(x))
|
||||
}
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{2, 0}
|
||||
}
|
||||
|
||||
// TextAnnotation contains a structured representation of OCR extracted text.
|
||||
// The hierarchy of an OCR extracted text structure is like this:
|
||||
@ -106,15 +114,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
|
||||
// message definition below for more detail.
|
||||
type TextAnnotation struct {
|
||||
// List of pages detected by OCR.
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{0}
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation) GetPages() []*Page {
|
||||
if m != nil {
|
||||
@ -135,17 +165,37 @@ type TextAnnotation_DetectedLanguage struct {
|
||||
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
||||
// information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
|
||||
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 0}
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 0}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
@ -164,15 +214,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
|
||||
// Detected start or end of a structural component.
|
||||
type TextAnnotation_DetectedBreak struct {
|
||||
// Detected break type.
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p1beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
// True if break prepends the element.
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 1}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
|
||||
if m != nil {
|
||||
@ -191,15 +263,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
|
||||
// Additional information detected on the structural component.
|
||||
type TextAnnotation_TextProperty struct {
|
||||
// A list of detected languages together with confidence.
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
|
||||
// Detected start or end of a text segment.
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{0, 2}
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
|
||||
if m != nil {
|
||||
@ -218,21 +312,43 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
|
||||
// Detected page from OCR.
|
||||
type Page struct {
|
||||
// Additional information detected on the page.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// Page width in pixels.
|
||||
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
|
||||
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// Page height in pixels.
|
||||
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
|
||||
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
// Confidence of the OCR results on the page. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{1}
|
||||
}
|
||||
func (m *Page) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Page.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Page) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Page.Merge(dst, src)
|
||||
}
|
||||
func (m *Page) XXX_Size() int {
|
||||
return xxx_messageInfo_Page.Size(m)
|
||||
}
|
||||
func (m *Page) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Page.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Page proto.InternalMessageInfo
|
||||
|
||||
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -272,7 +388,7 @@ func (m *Page) GetConfidence() float32 {
|
||||
// Logical element on the page.
|
||||
type Block struct {
|
||||
// Additional information detected for the block.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the block.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -288,19 +404,41 @@ type Block struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of paragraphs in this block (if this blocks is of type text).
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
|
||||
// Detected block type (text, image etc) for this block.
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1p1beta1.Block_BlockType" json:"block_type,omitempty"`
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p1beta1.Block_BlockType" json:"block_type,omitempty"`
|
||||
// Confidence of the OCR results on the block. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{2}
|
||||
}
|
||||
func (m *Block) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Block.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Block) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Block.Merge(dst, src)
|
||||
}
|
||||
func (m *Block) XXX_Size() int {
|
||||
return xxx_messageInfo_Block.Size(m)
|
||||
}
|
||||
func (m *Block) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Block.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Block proto.InternalMessageInfo
|
||||
|
||||
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -340,7 +478,7 @@ func (m *Block) GetConfidence() float32 {
|
||||
// Structural unit of text representing a number of words in certain order.
|
||||
type Paragraph struct {
|
||||
// Additional information detected for the paragraph.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the paragraph.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -356,17 +494,39 @@ type Paragraph struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
|
||||
// Confidence of the OCR results for the paragraph. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{3}
|
||||
}
|
||||
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Paragraph) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Paragraph.Merge(dst, src)
|
||||
}
|
||||
func (m *Paragraph) XXX_Size() int {
|
||||
return xxx_messageInfo_Paragraph.Size(m)
|
||||
}
|
||||
func (m *Paragraph) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Paragraph.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
|
||||
|
||||
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -399,7 +559,7 @@ func (m *Paragraph) GetConfidence() float32 {
|
||||
// A word representation.
|
||||
type Word struct {
|
||||
// Additional information detected for the word.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the word.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -415,18 +575,40 @@ type Word struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of symbols in the word.
|
||||
// The order of the symbols follows the natural reading order.
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
|
||||
// Confidence of the OCR results for the word. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{4}
|
||||
}
|
||||
func (m *Word) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Word.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Word) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Word.Merge(dst, src)
|
||||
}
|
||||
func (m *Word) XXX_Size() int {
|
||||
return xxx_messageInfo_Word.Size(m)
|
||||
}
|
||||
func (m *Word) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Word.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Word proto.InternalMessageInfo
|
||||
|
||||
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -459,7 +641,7 @@ func (m *Word) GetConfidence() float32 {
|
||||
// A single symbol representation.
|
||||
type Symbol struct {
|
||||
// Additional information detected for the symbol.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the symbol.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -475,17 +657,39 @@ type Symbol struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
|
||||
// Confidence of the OCR results for the symbol. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_0320745aa391b099, []int{5}
|
||||
}
|
||||
func (m *Symbol) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Symbol.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Symbol) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Symbol.Merge(dst, src)
|
||||
}
|
||||
func (m *Symbol) XXX_Size() int {
|
||||
return xxx_messageInfo_Symbol.Size(m)
|
||||
}
|
||||
func (m *Symbol) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Symbol.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Symbol proto.InternalMessageInfo
|
||||
|
||||
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -530,10 +734,10 @@ func init() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p1beta1/text_annotation.proto", fileDescriptor2)
|
||||
proto.RegisterFile("google/cloud/vision/v1p1beta1/text_annotation.proto", fileDescriptor_text_annotation_0320745aa391b099)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor_text_annotation_0320745aa391b099 = []byte{
|
||||
// 775 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
|
||||
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,
|
||||
|
200
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/web_detection.pb.go
generated
vendored
200
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1/web_detection.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p1beta1/web_detection.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p1beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,29 +13,57 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Relevant information for the image from the Internet.
|
||||
type WebDetection struct {
|
||||
// Deduced entities from similar images on the Internet.
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
|
||||
// Fully matching images from the Internet.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images from the Internet.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
// Web pages containing the matching images from the Internet.
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
|
||||
// The visually similar image results.
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
|
||||
// Best guess text labels for the request image.
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0}
|
||||
}
|
||||
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection.Size(m)
|
||||
}
|
||||
func (m *WebDetection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
|
||||
if m != nil {
|
||||
@ -82,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
|
||||
// Entity deduced from similar images on the Internet.
|
||||
type WebDetection_WebEntity struct {
|
||||
// Opaque entity ID.
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
||||
// Overall relevancy score for the entity.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 0}
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebEntity) GetEntityId() string {
|
||||
if m != nil {
|
||||
@ -119,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
|
||||
// Metadata for online images.
|
||||
type WebDetection_WebImage struct {
|
||||
// The result image URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the image.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 1}
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebImage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -146,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
|
||||
// Metadata for web pages.
|
||||
type WebDetection_WebPage struct {
|
||||
// The result web page URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the web page.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Title for the web page, may contain HTML markups.
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
|
||||
// Fully matching images on the page.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images on the page.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its
|
||||
// crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 2}
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebPage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -204,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
|
||||
// Label to provide extra metadata for the web detection.
|
||||
type WebDetection_WebLabel struct {
|
||||
// Label for extra metadata.
|
||||
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
|
||||
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
||||
// For more information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_1e42c8eaa5ae855c, []int{0, 3}
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebLabel) GetLabel() string {
|
||||
if m != nil {
|
||||
@ -238,9 +354,11 @@ func init() {
|
||||
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p1beta1.WebDetection.WebLabel")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor3) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p1beta1/web_detection.proto", fileDescriptor_web_detection_1e42c8eaa5ae855c)
|
||||
}
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
var fileDescriptor_web_detection_1e42c8eaa5ae855c = []byte{
|
||||
// 511 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8b, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,
|
||||
|
261
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/geometry.pb.go
generated
vendored
261
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/geometry.pb.go
generated
vendored
@ -1,59 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p2beta1/geometry.proto
|
||||
|
||||
/*
|
||||
Package vision is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/cloud/vision/v1p2beta1/geometry.proto
|
||||
google/cloud/vision/v1p2beta1/image_annotator.proto
|
||||
google/cloud/vision/v1p2beta1/text_annotation.proto
|
||||
google/cloud/vision/v1p2beta1/web_detection.proto
|
||||
|
||||
It has these top-level messages:
|
||||
Vertex
|
||||
BoundingPoly
|
||||
Position
|
||||
Feature
|
||||
ImageSource
|
||||
Image
|
||||
FaceAnnotation
|
||||
LocationInfo
|
||||
Property
|
||||
EntityAnnotation
|
||||
SafeSearchAnnotation
|
||||
LatLongRect
|
||||
ColorInfo
|
||||
DominantColorsAnnotation
|
||||
ImageProperties
|
||||
CropHint
|
||||
CropHintsAnnotation
|
||||
CropHintsParams
|
||||
WebDetectionParams
|
||||
ImageContext
|
||||
AnnotateImageRequest
|
||||
ImageAnnotationContext
|
||||
AnnotateImageResponse
|
||||
BatchAnnotateImagesRequest
|
||||
BatchAnnotateImagesResponse
|
||||
AsyncAnnotateFileRequest
|
||||
AsyncAnnotateFileResponse
|
||||
AsyncBatchAnnotateFilesRequest
|
||||
AsyncBatchAnnotateFilesResponse
|
||||
InputConfig
|
||||
OutputConfig
|
||||
GcsSource
|
||||
GcsDestination
|
||||
OperationMetadata
|
||||
TextAnnotation
|
||||
Page
|
||||
Block
|
||||
Paragraph
|
||||
Word
|
||||
Symbol
|
||||
WebDetection
|
||||
*/
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -74,15 +22,37 @@ const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
// NOTE: the vertex coordinates are in the same scale as the original image.
|
||||
type Vertex struct {
|
||||
// X coordinate.
|
||||
X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
|
||||
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
|
||||
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0665111372b2901b, []int{0}
|
||||
}
|
||||
func (m *Vertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vertex.Merge(dst, src)
|
||||
}
|
||||
func (m *Vertex) XXX_Size() int {
|
||||
return xxx_messageInfo_Vertex.Size(m)
|
||||
}
|
||||
func (m *Vertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vertex proto.InternalMessageInfo
|
||||
|
||||
func (m *Vertex) GetX() int32 {
|
||||
if m != nil {
|
||||
@ -98,16 +68,91 @@ func (m *Vertex) GetY() int32 {
|
||||
return 0
|
||||
}
|
||||
|
||||
// A vertex represents a 2D point in the image.
|
||||
// NOTE: the normalized vertex coordinates are relative to the original image
|
||||
// and range from 0 to 1.
|
||||
type NormalizedVertex struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
|
||||
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*NormalizedVertex) ProtoMessage() {}
|
||||
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0665111372b2901b, []int{1}
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Size() int {
|
||||
return xxx_messageInfo_NormalizedVertex.Size(m)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
|
||||
|
||||
func (m *NormalizedVertex) GetX() float32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) GetY() float32 {
|
||||
if m != nil {
|
||||
return m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A bounding polygon for the detected image annotation.
|
||||
type BoundingPoly struct {
|
||||
// The bounding polygon vertices.
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices" json:"vertices,omitempty"`
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||||
// The bounding polygon normalized vertices.
|
||||
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0665111372b2901b, []int{2}
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BoundingPoly.Merge(dst, src)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Size() int {
|
||||
return xxx_messageInfo_BoundingPoly.Size(m)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
|
||||
|
||||
func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
if m != nil {
|
||||
@ -116,22 +161,51 @@ func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
|
||||
if m != nil {
|
||||
return m.NormalizedVertices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A 3D position in the image, used primarily for Face detection landmarks.
|
||||
// A valid Position must have both x and y coordinates.
|
||||
// The position coordinates are in the same scale as the original image.
|
||||
type Position struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x" json:"x,omitempty"`
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y" json:"y,omitempty"`
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z" json:"z,omitempty"`
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_0665111372b2901b, []int{3}
|
||||
}
|
||||
func (m *Position) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Position.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Position) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Position.Merge(dst, src)
|
||||
}
|
||||
func (m *Position) XXX_Size() int {
|
||||
return xxx_messageInfo_Position.Size(m)
|
||||
}
|
||||
func (m *Position) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Position.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Position proto.InternalMessageInfo
|
||||
|
||||
func (m *Position) GetX() float32 {
|
||||
if m != nil {
|
||||
@ -156,28 +230,33 @@ func (m *Position) GetZ() float32 {
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1p2beta1.Vertex")
|
||||
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1p2beta1.NormalizedVertex")
|
||||
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p2beta1.BoundingPoly")
|
||||
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p2beta1.Position")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p2beta1/geometry.proto", fileDescriptor0) }
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 243 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xb1, 0x4b, 0xc3, 0x40,
|
||||
0x14, 0x87, 0x79, 0x29, 0x96, 0x72, 0xd6, 0x25, 0x53, 0x16, 0xa1, 0x06, 0x85, 0x0e, 0x72, 0x47,
|
||||
0xab, 0x9b, 0x93, 0x71, 0x70, 0x8d, 0x19, 0x1c, 0xdc, 0xd2, 0xf4, 0xf1, 0x38, 0x48, 0xef, 0x85,
|
||||
0xcb, 0x35, 0xf4, 0x8a, 0x7f, 0xb8, 0xa3, 0xf4, 0xae, 0x54, 0x1c, 0xda, 0xf1, 0x77, 0xf7, 0x3d,
|
||||
0x3e, 0xf8, 0xc4, 0x23, 0x31, 0x53, 0x8b, 0xaa, 0x69, 0x79, 0xbb, 0x56, 0x83, 0xee, 0x35, 0x1b,
|
||||
0x35, 0x2c, 0xba, 0xe5, 0x0a, 0x5d, 0xbd, 0x50, 0x84, 0xbc, 0x41, 0x67, 0xbd, 0xec, 0x2c, 0x3b,
|
||||
0x4e, 0x6f, 0x23, 0x2d, 0x03, 0x2d, 0x23, 0x2d, 0x4f, 0x74, 0x7e, 0x2f, 0xc6, 0x9f, 0x68, 0x1d,
|
||||
0xee, 0xd2, 0xa9, 0x80, 0x5d, 0x06, 0x33, 0x98, 0x5f, 0x55, 0x10, 0x96, 0xcf, 0x92, 0xb8, 0x7c,
|
||||
0xfe, 0x21, 0xa6, 0x05, 0x6f, 0xcd, 0x5a, 0x1b, 0x2a, 0xb9, 0xf5, 0xe9, 0xab, 0x98, 0x0c, 0x68,
|
||||
0x9d, 0x6e, 0xb0, 0xcf, 0x60, 0x36, 0x9a, 0x5f, 0x2f, 0x1f, 0xe4, 0x45, 0x8f, 0x8c, 0x92, 0xea,
|
||||
0x74, 0x96, 0x3f, 0x8b, 0x49, 0xc9, 0xbd, 0x76, 0x9a, 0xcd, 0x9f, 0x3a, 0xf9, 0xa7, 0x4e, 0x2a,
|
||||
0xf0, 0x87, 0xb5, 0xcf, 0x46, 0x71, 0xed, 0x8b, 0x6f, 0x71, 0xd7, 0xf0, 0xe6, 0xb2, 0xab, 0xb8,
|
||||
0x79, 0x3f, 0x26, 0x28, 0x0f, 0x05, 0x4a, 0xf8, 0x7a, 0x3b, 0xf2, 0xc4, 0x6d, 0x6d, 0x48, 0xb2,
|
||||
0x25, 0x45, 0x68, 0x42, 0x1f, 0x15, 0xbf, 0xea, 0x4e, 0xf7, 0x67, 0x82, 0xbe, 0xc4, 0x87, 0x1f,
|
||||
0x80, 0xd5, 0x38, 0x9c, 0x3c, 0xfd, 0x06, 0x00, 0x00, 0xff, 0xff, 0x5a, 0xa2, 0xee, 0x2b, 0x82,
|
||||
0x01, 0x00, 0x00,
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p2beta1/geometry.proto", fileDescriptor_geometry_0665111372b2901b)
|
||||
}
|
||||
|
||||
var fileDescriptor_geometry_0665111372b2901b = []byte{
|
||||
// 283 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x4b, 0xc3, 0x30,
|
||||
0x14, 0xc6, 0x49, 0x87, 0x63, 0xc4, 0x09, 0x52, 0x2f, 0xbd, 0x08, 0xb3, 0x28, 0xec, 0x20, 0x09,
|
||||
0x9b, 0xde, 0x3c, 0x59, 0x0f, 0xde, 0xa4, 0xf4, 0xe0, 0xc1, 0x8b, 0x76, 0xed, 0x23, 0x04, 0xda,
|
||||
0xbc, 0x92, 0x66, 0x65, 0x2d, 0xfe, 0x57, 0xfe, 0x73, 0x1e, 0xa5, 0xc9, 0x28, 0x6c, 0x60, 0x77,
|
||||
0xfc, 0x5e, 0x7e, 0xef, 0x7b, 0x5f, 0xf8, 0xe8, 0xbd, 0x40, 0x14, 0x05, 0xf0, 0xac, 0xc0, 0x6d,
|
||||
0xce, 0x1b, 0x59, 0x4b, 0x54, 0xbc, 0x59, 0x55, 0xeb, 0x0d, 0x98, 0x74, 0xc5, 0x05, 0x60, 0x09,
|
||||
0x46, 0xb7, 0xac, 0xd2, 0x68, 0xd0, 0xbf, 0x76, 0x34, 0xb3, 0x34, 0x73, 0x34, 0x1b, 0xe8, 0xf0,
|
||||
0x96, 0x4e, 0xdf, 0x41, 0x1b, 0xd8, 0xf9, 0x73, 0x4a, 0x76, 0x01, 0x59, 0x90, 0xe5, 0x59, 0x42,
|
||||
0xac, 0x6a, 0x03, 0xcf, 0xa9, 0x36, 0x64, 0xf4, 0xf2, 0x0d, 0x75, 0x99, 0x16, 0xb2, 0x83, 0xfc,
|
||||
0x98, 0xf7, 0x0e, 0x78, 0xaf, 0xe7, 0x7f, 0x08, 0x9d, 0x47, 0xb8, 0x55, 0xb9, 0x54, 0x22, 0xc6,
|
||||
0xa2, 0xf5, 0x9f, 0xe9, 0xac, 0x01, 0x6d, 0x64, 0x06, 0x75, 0x40, 0x16, 0x93, 0xe5, 0xf9, 0xfa,
|
||||
0x8e, 0x8d, 0x06, 0x63, 0xee, 0x4a, 0x32, 0xac, 0xf9, 0x5f, 0xf4, 0x4a, 0x0d, 0x19, 0x3e, 0x07,
|
||||
0x37, 0xcf, 0xba, 0xf1, 0x13, 0x6e, 0xc7, 0xe9, 0x13, 0x5f, 0x1d, 0x4c, 0x7a, 0xab, 0xf0, 0x91,
|
||||
0xce, 0x62, 0xac, 0xa5, 0x91, 0xa8, 0xc6, 0x7e, 0xd7, 0xab, 0x2e, 0x98, 0x38, 0xd5, 0x45, 0xdf,
|
||||
0xf4, 0x26, 0xc3, 0x72, 0xfc, 0x7e, 0x74, 0xf1, 0xba, 0x6f, 0x25, 0xee, 0x4b, 0x89, 0xc9, 0xc7,
|
||||
0xcb, 0x9e, 0x17, 0x58, 0xa4, 0x4a, 0x30, 0xd4, 0x82, 0x0b, 0x50, 0xb6, 0x32, 0xee, 0x9e, 0xd2,
|
||||
0x4a, 0xd6, 0xff, 0x74, 0xfc, 0xe4, 0x06, 0xbf, 0x84, 0x6c, 0xa6, 0x76, 0xe5, 0xe1, 0x2f, 0x00,
|
||||
0x00, 0xff, 0xff, 0x3d, 0xe4, 0x63, 0xcf, 0x15, 0x02, 0x00, 0x00,
|
||||
}
|
||||
|
1615
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go
generated
vendored
1615
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/image_annotator.pb.go
generated
vendored
File diff suppressed because it is too large
Load Diff
340
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go
generated
vendored
340
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/text_annotation.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p2beta1/text_annotation.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,6 +13,12 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Enum to denote the type of break found. New line, space etc.
|
||||
type TextAnnotation_DetectedBreak_BreakType int32
|
||||
|
||||
@ -53,7 +59,7 @@ func (x TextAnnotation_DetectedBreak_BreakType) String() string {
|
||||
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
|
||||
}
|
||||
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 1, 0}
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 1, 0}
|
||||
}
|
||||
|
||||
// Type of a block (text, image etc) as identified by OCR.
|
||||
@ -94,7 +100,9 @@ var Block_BlockType_value = map[string]int32{
|
||||
func (x Block_BlockType) String() string {
|
||||
return proto.EnumName(Block_BlockType_name, int32(x))
|
||||
}
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{2, 0} }
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{2, 0}
|
||||
}
|
||||
|
||||
// TextAnnotation contains a structured representation of OCR extracted text.
|
||||
// The hierarchy of an OCR extracted text structure is like this:
|
||||
@ -105,15 +113,37 @@ func (Block_BlockType) EnumDescriptor() ([]byte, []int) { return fileDescriptor2
|
||||
// detail.
|
||||
type TextAnnotation struct {
|
||||
// List of pages detected by OCR.
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages" json:"pages,omitempty"`
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0}
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation) GetPages() []*Page {
|
||||
if m != nil {
|
||||
@ -134,17 +164,37 @@ type TextAnnotation_DetectedLanguage struct {
|
||||
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
||||
// information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
|
||||
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 0}
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 0}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
@ -163,15 +213,37 @@ func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
|
||||
// Detected start or end of a structural component.
|
||||
type TextAnnotation_DetectedBreak struct {
|
||||
// Detected break type.
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,enum=google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p2beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
// True if break prepends the element.
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix" json:"is_prefix,omitempty"`
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 1}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
|
||||
if m != nil {
|
||||
@ -190,15 +262,37 @@ func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
|
||||
// Additional information detected on the structural component.
|
||||
type TextAnnotation_TextProperty struct {
|
||||
// A list of detected languages together with confidence.
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages" json:"detected_languages,omitempty"`
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
|
||||
// Detected start or end of a text segment.
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak" json:"detected_break,omitempty"`
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{0, 2}
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
|
||||
if m != nil {
|
||||
@ -217,23 +311,45 @@ func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_Detecte
|
||||
// Detected page from OCR.
|
||||
type Page struct {
|
||||
// Additional information detected on the page.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// Page width. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Width int32 `protobuf:"varint,2,opt,name=width" json:"width,omitempty"`
|
||||
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// Page height. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Height int32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
|
||||
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks" json:"blocks,omitempty"`
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
// Confidence of the OCR results on the page. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{1}
|
||||
}
|
||||
func (m *Page) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Page.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Page) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Page.Merge(dst, src)
|
||||
}
|
||||
func (m *Page) XXX_Size() int {
|
||||
return xxx_messageInfo_Page.Size(m)
|
||||
}
|
||||
func (m *Page) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Page.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Page proto.InternalMessageInfo
|
||||
|
||||
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -273,7 +389,7 @@ func (m *Page) GetConfidence() float32 {
|
||||
// Logical element on the page.
|
||||
type Block struct {
|
||||
// Additional information detected for the block.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the block.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -294,19 +410,41 @@ type Block struct {
|
||||
// 1----0
|
||||
//
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of paragraphs in this block (if this blocks is of type text).
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs" json:"paragraphs,omitempty"`
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
|
||||
// Detected block type (text, image etc) for this block.
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,enum=google.cloud.vision.v1p2beta1.Block_BlockType" json:"block_type,omitempty"`
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p2beta1.Block_BlockType" json:"block_type,omitempty"`
|
||||
// Confidence of the OCR results on the block. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{2}
|
||||
}
|
||||
func (m *Block) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Block.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Block) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Block.Merge(dst, src)
|
||||
}
|
||||
func (m *Block) XXX_Size() int {
|
||||
return xxx_messageInfo_Block.Size(m)
|
||||
}
|
||||
func (m *Block) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Block.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Block proto.InternalMessageInfo
|
||||
|
||||
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -346,7 +484,7 @@ func (m *Block) GetConfidence() float32 {
|
||||
// Structural unit of text representing a number of words in certain order.
|
||||
type Paragraph struct {
|
||||
// Additional information detected for the paragraph.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the paragraph.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -362,17 +500,39 @@ type Paragraph struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words" json:"words,omitempty"`
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
|
||||
// Confidence of the OCR results for the paragraph. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{3}
|
||||
}
|
||||
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Paragraph) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Paragraph.Merge(dst, src)
|
||||
}
|
||||
func (m *Paragraph) XXX_Size() int {
|
||||
return xxx_messageInfo_Paragraph.Size(m)
|
||||
}
|
||||
func (m *Paragraph) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Paragraph.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
|
||||
|
||||
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -405,7 +565,7 @@ func (m *Paragraph) GetConfidence() float32 {
|
||||
// A word representation.
|
||||
type Word struct {
|
||||
// Additional information detected for the word.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the word.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -421,18 +581,40 @@ type Word struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of symbols in the word.
|
||||
// The order of the symbols follows the natural reading order.
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols" json:"symbols,omitempty"`
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
|
||||
// Confidence of the OCR results for the word. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{4}
|
||||
}
|
||||
func (m *Word) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Word.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Word) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Word.Merge(dst, src)
|
||||
}
|
||||
func (m *Word) XXX_Size() int {
|
||||
return xxx_messageInfo_Word.Size(m)
|
||||
}
|
||||
func (m *Word) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Word.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Word proto.InternalMessageInfo
|
||||
|
||||
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -465,7 +647,7 @@ func (m *Word) GetConfidence() float32 {
|
||||
// A single symbol representation.
|
||||
type Symbol struct {
|
||||
// Additional information detected for the symbol.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property" json:"property,omitempty"`
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the symbol.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
@ -481,17 +663,39 @@ type Symbol struct {
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox" json:"bounding_box,omitempty"`
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text" json:"text,omitempty"`
|
||||
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
|
||||
// Confidence of the OCR results for the symbol. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence" json:"confidence,omitempty"`
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_8d9193533acd557d, []int{5}
|
||||
}
|
||||
func (m *Symbol) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Symbol.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Symbol) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Symbol.Merge(dst, src)
|
||||
}
|
||||
func (m *Symbol) XXX_Size() int {
|
||||
return xxx_messageInfo_Symbol.Size(m)
|
||||
}
|
||||
func (m *Symbol) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Symbol.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Symbol proto.InternalMessageInfo
|
||||
|
||||
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
@ -536,10 +740,10 @@ func init() {
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p2beta1/text_annotation.proto", fileDescriptor2)
|
||||
proto.RegisterFile("google/cloud/vision/v1p2beta1/text_annotation.proto", fileDescriptor_text_annotation_8d9193533acd557d)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
var fileDescriptor_text_annotation_8d9193533acd557d = []byte{
|
||||
// 774 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
|
||||
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,
|
||||
|
203
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/web_detection.pb.go
generated
vendored
203
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1/web_detection.pb.go
generated
vendored
@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p2beta1/web_detection.proto
|
||||
|
||||
package vision
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
@ -13,30 +13,57 @@ var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Relevant information for the image from the Internet.
|
||||
type WebDetection struct {
|
||||
// Deduced entities from similar images on the Internet.
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities" json:"web_entities,omitempty"`
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
|
||||
// Fully matching images from the Internet.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images from the Internet.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
// Web pages containing the matching images from the Internet.
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages" json:"pages_with_matching_images,omitempty"`
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
|
||||
// The visually similar image results.
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages" json:"visually_similar_images,omitempty"`
|
||||
// The service's best guess as to the topic of the request image.
|
||||
// Inferred from similar images on the open web.
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels" json:"best_guess_labels,omitempty"`
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
|
||||
// Best guess text labels for the request image.
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0}
|
||||
}
|
||||
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection.Size(m)
|
||||
}
|
||||
func (m *WebDetection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
|
||||
if m != nil {
|
||||
@ -83,18 +110,40 @@ func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
|
||||
// Entity deduced from similar images on the Internet.
|
||||
type WebDetection_WebEntity struct {
|
||||
// Opaque entity ID.
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId" json:"entity_id,omitempty"`
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
||||
// Overall relevancy score for the entity.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 0}
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebEntity) GetEntityId() string {
|
||||
if m != nil {
|
||||
@ -120,15 +169,37 @@ func (m *WebDetection_WebEntity) GetDescription() string {
|
||||
// Metadata for online images.
|
||||
type WebDetection_WebImage struct {
|
||||
// The result image URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the image.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 1}
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebImage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -147,25 +218,47 @@ func (m *WebDetection_WebImage) GetScore() float32 {
|
||||
// Metadata for web pages.
|
||||
type WebDetection_WebPage struct {
|
||||
// The result web page URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the web page.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score" json:"score,omitempty"`
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Title for the web page, may contain HTML markups.
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle" json:"page_title,omitempty"`
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
|
||||
// Fully matching images on the page.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages" json:"full_matching_images,omitempty"`
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images on the page.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its
|
||||
// crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages" json:"partial_matching_images,omitempty"`
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 2} }
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 2}
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebPage) GetUrl() string {
|
||||
if m != nil {
|
||||
@ -205,17 +298,39 @@ func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebIma
|
||||
// Label to provide extra metadata for the web detection.
|
||||
type WebDetection_WebLabel struct {
|
||||
// Label for extra metadata.
|
||||
Label string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
|
||||
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
||||
// For more information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode" json:"language_code,omitempty"`
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 3} }
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_cbb14b20b0012343, []int{0, 3}
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebLabel) GetLabel() string {
|
||||
if m != nil {
|
||||
@ -239,9 +354,11 @@ func init() {
|
||||
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p2beta1.WebDetection.WebLabel")
|
||||
}
|
||||
|
||||
func init() { proto.RegisterFile("google/cloud/vision/v1p2beta1/web_detection.proto", fileDescriptor3) }
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p2beta1/web_detection.proto", fileDescriptor_web_detection_cbb14b20b0012343)
|
||||
}
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
var fileDescriptor_web_detection_cbb14b20b0012343 = []byte{
|
||||
// 511 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8d, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,
|
||||
|
306
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/geometry.pb.go
generated
vendored
Normal file
306
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/geometry.pb.go
generated
vendored
Normal file
@ -0,0 +1,306 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p3beta1/geometry.proto
|
||||
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// A vertex represents a 2D point in the image.
|
||||
// NOTE: the vertex coordinates are in the same scale as the original image.
|
||||
type Vertex struct {
|
||||
// X coordinate.
|
||||
X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vertex) Reset() { *m = Vertex{} }
|
||||
func (m *Vertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vertex) ProtoMessage() {}
|
||||
func (*Vertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_af1b507a20494236, []int{0}
|
||||
}
|
||||
func (m *Vertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vertex.Merge(dst, src)
|
||||
}
|
||||
func (m *Vertex) XXX_Size() int {
|
||||
return xxx_messageInfo_Vertex.Size(m)
|
||||
}
|
||||
func (m *Vertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vertex proto.InternalMessageInfo
|
||||
|
||||
func (m *Vertex) GetX() int32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Vertex) GetY() int32 {
|
||||
if m != nil {
|
||||
return m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A vertex represents a 2D point in the image.
|
||||
// NOTE: the normalized vertex coordinates are relative to the original image
|
||||
// and range from 0 to 1.
|
||||
type NormalizedVertex struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) Reset() { *m = NormalizedVertex{} }
|
||||
func (m *NormalizedVertex) String() string { return proto.CompactTextString(m) }
|
||||
func (*NormalizedVertex) ProtoMessage() {}
|
||||
func (*NormalizedVertex) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_af1b507a20494236, []int{1}
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_NormalizedVertex.Unmarshal(m, b)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_NormalizedVertex.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *NormalizedVertex) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_NormalizedVertex.Merge(dst, src)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_Size() int {
|
||||
return xxx_messageInfo_NormalizedVertex.Size(m)
|
||||
}
|
||||
func (m *NormalizedVertex) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_NormalizedVertex.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_NormalizedVertex proto.InternalMessageInfo
|
||||
|
||||
func (m *NormalizedVertex) GetX() float32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *NormalizedVertex) GetY() float32 {
|
||||
if m != nil {
|
||||
return m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A bounding polygon for the detected image annotation.
|
||||
type BoundingPoly struct {
|
||||
// The bounding polygon vertices.
|
||||
Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||||
// The bounding polygon normalized vertices.
|
||||
NormalizedVertices []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) Reset() { *m = BoundingPoly{} }
|
||||
func (m *BoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*BoundingPoly) ProtoMessage() {}
|
||||
func (*BoundingPoly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_af1b507a20494236, []int{2}
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BoundingPoly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BoundingPoly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BoundingPoly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BoundingPoly.Merge(dst, src)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_Size() int {
|
||||
return xxx_messageInfo_BoundingPoly.Size(m)
|
||||
}
|
||||
func (m *BoundingPoly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BoundingPoly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BoundingPoly proto.InternalMessageInfo
|
||||
|
||||
func (m *BoundingPoly) GetVertices() []*Vertex {
|
||||
if m != nil {
|
||||
return m.Vertices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex {
|
||||
if m != nil {
|
||||
return m.NormalizedVertices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A normalized bounding polygon around a portion of an image.
|
||||
type NormalizedBoundingPoly struct {
|
||||
// Normalized vertices of the bounding polygon.
|
||||
Vertices []*NormalizedVertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *NormalizedBoundingPoly) Reset() { *m = NormalizedBoundingPoly{} }
|
||||
func (m *NormalizedBoundingPoly) String() string { return proto.CompactTextString(m) }
|
||||
func (*NormalizedBoundingPoly) ProtoMessage() {}
|
||||
func (*NormalizedBoundingPoly) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_af1b507a20494236, []int{3}
|
||||
}
|
||||
func (m *NormalizedBoundingPoly) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_NormalizedBoundingPoly.Unmarshal(m, b)
|
||||
}
|
||||
func (m *NormalizedBoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_NormalizedBoundingPoly.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *NormalizedBoundingPoly) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_NormalizedBoundingPoly.Merge(dst, src)
|
||||
}
|
||||
func (m *NormalizedBoundingPoly) XXX_Size() int {
|
||||
return xxx_messageInfo_NormalizedBoundingPoly.Size(m)
|
||||
}
|
||||
func (m *NormalizedBoundingPoly) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_NormalizedBoundingPoly.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_NormalizedBoundingPoly proto.InternalMessageInfo
|
||||
|
||||
func (m *NormalizedBoundingPoly) GetVertices() []*NormalizedVertex {
|
||||
if m != nil {
|
||||
return m.Vertices
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// A 3D position in the image, used primarily for Face detection landmarks.
|
||||
// A valid Position must have both x and y coordinates.
|
||||
// The position coordinates are in the same scale as the original image.
|
||||
type Position struct {
|
||||
// X coordinate.
|
||||
X float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
|
||||
// Y coordinate.
|
||||
Y float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
|
||||
// Z coordinate (or depth).
|
||||
Z float32 `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Position) Reset() { *m = Position{} }
|
||||
func (m *Position) String() string { return proto.CompactTextString(m) }
|
||||
func (*Position) ProtoMessage() {}
|
||||
func (*Position) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_geometry_af1b507a20494236, []int{4}
|
||||
}
|
||||
func (m *Position) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Position.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Position.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Position) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Position.Merge(dst, src)
|
||||
}
|
||||
func (m *Position) XXX_Size() int {
|
||||
return xxx_messageInfo_Position.Size(m)
|
||||
}
|
||||
func (m *Position) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Position.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Position proto.InternalMessageInfo
|
||||
|
||||
func (m *Position) GetX() float32 {
|
||||
if m != nil {
|
||||
return m.X
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Position) GetY() float32 {
|
||||
if m != nil {
|
||||
return m.Y
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Position) GetZ() float32 {
|
||||
if m != nil {
|
||||
return m.Z
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Vertex)(nil), "google.cloud.vision.v1p3beta1.Vertex")
|
||||
proto.RegisterType((*NormalizedVertex)(nil), "google.cloud.vision.v1p3beta1.NormalizedVertex")
|
||||
proto.RegisterType((*BoundingPoly)(nil), "google.cloud.vision.v1p3beta1.BoundingPoly")
|
||||
proto.RegisterType((*NormalizedBoundingPoly)(nil), "google.cloud.vision.v1p3beta1.NormalizedBoundingPoly")
|
||||
proto.RegisterType((*Position)(nil), "google.cloud.vision.v1p3beta1.Position")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p3beta1/geometry.proto", fileDescriptor_geometry_af1b507a20494236)
|
||||
}
|
||||
|
||||
var fileDescriptor_geometry_af1b507a20494236 = []byte{
|
||||
// 316 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4b, 0xc3, 0x30,
|
||||
0x14, 0xc6, 0x49, 0x87, 0x63, 0xc4, 0x09, 0x52, 0x41, 0x8a, 0x28, 0xcc, 0xa2, 0xb0, 0x83, 0x24,
|
||||
0xcc, 0x79, 0xf3, 0xe4, 0x3c, 0x78, 0x10, 0xa4, 0xf4, 0xe0, 0xc1, 0x8b, 0x66, 0x6d, 0x08, 0x81,
|
||||
0x36, 0xaf, 0xa4, 0x59, 0x59, 0x8b, 0xff, 0x95, 0xff, 0x9c, 0x47, 0x69, 0x53, 0x2a, 0x9d, 0x58,
|
||||
0xf1, 0xf8, 0xbd, 0xfc, 0xde, 0xf7, 0x3e, 0xf2, 0x1e, 0xbe, 0x12, 0x00, 0x22, 0xe1, 0x34, 0x4a,
|
||||
0x60, 0x13, 0xd3, 0x42, 0xe6, 0x12, 0x14, 0x2d, 0x16, 0xd9, 0x72, 0xcd, 0x0d, 0x5b, 0x50, 0xc1,
|
||||
0x21, 0xe5, 0x46, 0x97, 0x24, 0xd3, 0x60, 0xc0, 0x3d, 0xb3, 0x34, 0x69, 0x68, 0x62, 0x69, 0xd2,
|
||||
0xd1, 0x27, 0xa7, 0xad, 0x19, 0xcb, 0x24, 0x65, 0x4a, 0x81, 0x61, 0x46, 0x82, 0xca, 0x6d, 0xb3,
|
||||
0x7f, 0x81, 0xc7, 0xcf, 0x5c, 0x1b, 0xbe, 0x75, 0xa7, 0x18, 0x6d, 0x3d, 0x34, 0x43, 0xf3, 0xbd,
|
||||
0x10, 0x35, 0xaa, 0xf4, 0x1c, 0xab, 0x4a, 0x9f, 0xe0, 0xc3, 0x27, 0xd0, 0x29, 0x4b, 0x64, 0xc5,
|
||||
0xe3, 0x5d, 0xde, 0xe9, 0xf1, 0x4e, 0xcd, 0x7f, 0x20, 0x3c, 0x5d, 0xc1, 0x46, 0xc5, 0x52, 0x89,
|
||||
0x00, 0x92, 0xd2, 0xbd, 0xc3, 0x93, 0x82, 0x6b, 0x23, 0x23, 0x9e, 0x7b, 0x68, 0x36, 0x9a, 0xef,
|
||||
0x5f, 0x5f, 0x92, 0xc1, 0xd8, 0xc4, 0x4e, 0x09, 0xbb, 0x36, 0xf7, 0x0d, 0x1f, 0xa9, 0x2e, 0xc3,
|
||||
0x6b, 0xe7, 0xe6, 0x34, 0x6e, 0xf4, 0x0f, 0xb7, 0xdd, 0xf4, 0xa1, 0xab, 0x7a, 0x95, 0xda, 0xca,
|
||||
0xe7, 0xf8, 0xf8, 0x9b, 0xeb, 0xc5, 0x7f, 0xfc, 0x11, 0xff, 0xdf, 0x03, 0x3b, 0x03, 0xff, 0x06,
|
||||
0x4f, 0x02, 0xc8, 0x65, 0xbd, 0x85, 0xa1, 0x4f, 0xac, 0x55, 0xe5, 0x8d, 0xac, 0xaa, 0x56, 0xef,
|
||||
0xf8, 0x3c, 0x82, 0x74, 0x78, 0xea, 0xea, 0xe0, 0xa1, 0x3d, 0x8d, 0xa0, 0x5e, 0x6e, 0x80, 0x5e,
|
||||
0xee, 0x5b, 0x5e, 0x40, 0xc2, 0x94, 0x20, 0xa0, 0x05, 0x15, 0x5c, 0x35, 0xab, 0xa7, 0xf6, 0x89,
|
||||
0x65, 0x32, 0xff, 0xe5, 0xd0, 0x6e, 0x6d, 0xe1, 0x13, 0xa1, 0xf5, 0xb8, 0x69, 0x59, 0x7e, 0x05,
|
||||
0x00, 0x00, 0xff, 0xff, 0x79, 0x59, 0xbf, 0x39, 0x9a, 0x02, 0x00, 0x00,
|
||||
}
|
2826
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go
generated
vendored
Normal file
2826
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/image_annotator.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
481
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/product_search.pb.go
generated
vendored
Normal file
481
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/product_search.pb.go
generated
vendored
Normal file
@ -0,0 +1,481 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p3beta1/product_search.proto
|
||||
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Supported product search categories.
|
||||
type ProductSearchCategory int32
|
||||
|
||||
const (
|
||||
// Default value used when a category is not specified.
|
||||
ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED ProductSearchCategory = 0
|
||||
// Shoes category.
|
||||
ProductSearchCategory_SHOES ProductSearchCategory = 1
|
||||
// Bags category.
|
||||
ProductSearchCategory_BAGS ProductSearchCategory = 2
|
||||
)
|
||||
|
||||
var ProductSearchCategory_name = map[int32]string{
|
||||
0: "PRODUCT_SEARCH_CATEGORY_UNSPECIFIED",
|
||||
1: "SHOES",
|
||||
2: "BAGS",
|
||||
}
|
||||
var ProductSearchCategory_value = map[string]int32{
|
||||
"PRODUCT_SEARCH_CATEGORY_UNSPECIFIED": 0,
|
||||
"SHOES": 1,
|
||||
"BAGS": 2,
|
||||
}
|
||||
|
||||
func (x ProductSearchCategory) String() string {
|
||||
return proto.EnumName(ProductSearchCategory_name, int32(x))
|
||||
}
|
||||
func (ProductSearchCategory) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{0}
|
||||
}
|
||||
|
||||
// Specifies the fields to include in product search results.
|
||||
type ProductSearchResultsView int32
|
||||
|
||||
const (
|
||||
// Product search results contain only `product_category` and `product_id`.
|
||||
// Default value.
|
||||
ProductSearchResultsView_BASIC ProductSearchResultsView = 0
|
||||
// Product search results contain `product_category`, `product_id`,
|
||||
// `image_uri`, and `score`.
|
||||
ProductSearchResultsView_FULL ProductSearchResultsView = 1
|
||||
)
|
||||
|
||||
var ProductSearchResultsView_name = map[int32]string{
|
||||
0: "BASIC",
|
||||
1: "FULL",
|
||||
}
|
||||
var ProductSearchResultsView_value = map[string]int32{
|
||||
"BASIC": 0,
|
||||
"FULL": 1,
|
||||
}
|
||||
|
||||
func (x ProductSearchResultsView) String() string {
|
||||
return proto.EnumName(ProductSearchResultsView_name, int32(x))
|
||||
}
|
||||
func (ProductSearchResultsView) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1}
|
||||
}
|
||||
|
||||
// Parameters for a product search request.
|
||||
type ProductSearchParams struct {
|
||||
// The resource name of the catalog to search.
|
||||
//
|
||||
// Format is: `productSearch/catalogs/CATALOG_NAME`.
|
||||
CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"`
|
||||
// The category to search in.
|
||||
// Optional. It is inferred by the system if it is not specified.
|
||||
// [Deprecated] Use `product_category`.
|
||||
Category ProductSearchCategory `protobuf:"varint,2,opt,name=category,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchCategory" json:"category,omitempty"`
|
||||
// The product category to search in.
|
||||
// Optional. It is inferred by the system if it is not specified.
|
||||
// Supported values are `bag`, `shoe`, `sunglasses`, `dress`, `outerwear`,
|
||||
// `skirt`, `top`, `shorts`, and `pants`.
|
||||
ProductCategory string `protobuf:"bytes,5,opt,name=product_category,json=productCategory,proto3" json:"product_category,omitempty"`
|
||||
// The bounding polygon around the area of interest in the image.
|
||||
// Optional. If it is not specified, system discretion will be applied.
|
||||
// [Deprecated] Use `bounding_poly`.
|
||||
NormalizedBoundingPoly *NormalizedBoundingPoly `protobuf:"bytes,3,opt,name=normalized_bounding_poly,json=normalizedBoundingPoly,proto3" json:"normalized_bounding_poly,omitempty"`
|
||||
// The bounding polygon around the area of interest in the image.
|
||||
// Optional. If it is not specified, system discretion will be applied.
|
||||
BoundingPoly *BoundingPoly `protobuf:"bytes,9,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
|
||||
// Specifies the verbosity of the product search results.
|
||||
// Optional. Defaults to `BASIC`.
|
||||
View ProductSearchResultsView `protobuf:"varint,4,opt,name=view,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchResultsView" json:"view,omitempty"`
|
||||
// The resource name of a [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] to be searched for similar images.
|
||||
//
|
||||
// Format is:
|
||||
// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
|
||||
ProductSet string `protobuf:"bytes,6,opt,name=product_set,json=productSet,proto3" json:"product_set,omitempty"`
|
||||
// The list of product categories to search in. Currently, we only consider
|
||||
// the first category, and either "homegoods" or "apparel" should be
|
||||
// specified.
|
||||
ProductCategories []string `protobuf:"bytes,7,rep,name=product_categories,json=productCategories,proto3" json:"product_categories,omitempty"`
|
||||
// The filtering expression. This can be used to restrict search results based
|
||||
// on Product labels. We currently support an AND of OR of key-value
|
||||
// expressions, where each expression within an OR must have the same key.
|
||||
//
|
||||
// For example, "(color = red OR color = blue) AND brand = Google" is
|
||||
// acceptable, but not "(color = red OR brand = Google)" or "color: red".
|
||||
Filter string `protobuf:"bytes,8,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) Reset() { *m = ProductSearchParams{} }
|
||||
func (m *ProductSearchParams) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProductSearchParams) ProtoMessage() {}
|
||||
func (*ProductSearchParams) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{0}
|
||||
}
|
||||
func (m *ProductSearchParams) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProductSearchParams.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProductSearchParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProductSearchParams.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProductSearchParams) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProductSearchParams.Merge(dst, src)
|
||||
}
|
||||
func (m *ProductSearchParams) XXX_Size() int {
|
||||
return xxx_messageInfo_ProductSearchParams.Size(m)
|
||||
}
|
||||
func (m *ProductSearchParams) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProductSearchParams.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProductSearchParams proto.InternalMessageInfo
|
||||
|
||||
func (m *ProductSearchParams) GetCatalogName() string {
|
||||
if m != nil {
|
||||
return m.CatalogName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetCategory() ProductSearchCategory {
|
||||
if m != nil {
|
||||
return m.Category
|
||||
}
|
||||
return ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetProductCategory() string {
|
||||
if m != nil {
|
||||
return m.ProductCategory
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetNormalizedBoundingPoly() *NormalizedBoundingPoly {
|
||||
if m != nil {
|
||||
return m.NormalizedBoundingPoly
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetBoundingPoly() *BoundingPoly {
|
||||
if m != nil {
|
||||
return m.BoundingPoly
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetView() ProductSearchResultsView {
|
||||
if m != nil {
|
||||
return m.View
|
||||
}
|
||||
return ProductSearchResultsView_BASIC
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetProductSet() string {
|
||||
if m != nil {
|
||||
return m.ProductSet
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetProductCategories() []string {
|
||||
if m != nil {
|
||||
return m.ProductCategories
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchParams) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Results for a product search request.
|
||||
type ProductSearchResults struct {
|
||||
// Product category.
|
||||
// [Deprecated] Use `product_category`.
|
||||
Category ProductSearchCategory `protobuf:"varint,1,opt,name=category,proto3,enum=google.cloud.vision.v1p3beta1.ProductSearchCategory" json:"category,omitempty"`
|
||||
// Product category.
|
||||
// Supported values are `bag` and `shoe`.
|
||||
// [Deprecated] `product_category` is provided in each Product.
|
||||
ProductCategory string `protobuf:"bytes,4,opt,name=product_category,json=productCategory,proto3" json:"product_category,omitempty"`
|
||||
// Timestamp of the index which provided these results. Changes made after
|
||||
// this time are not reflected in the current results.
|
||||
IndexTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"`
|
||||
// List of detected products.
|
||||
Products []*ProductSearchResults_ProductInfo `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"`
|
||||
// List of results, one for each product match.
|
||||
Results []*ProductSearchResults_Result `protobuf:"bytes,5,rep,name=results,proto3" json:"results,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults) Reset() { *m = ProductSearchResults{} }
|
||||
func (m *ProductSearchResults) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProductSearchResults) ProtoMessage() {}
|
||||
func (*ProductSearchResults) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1}
|
||||
}
|
||||
func (m *ProductSearchResults) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProductSearchResults.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProductSearchResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProductSearchResults.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProductSearchResults) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProductSearchResults.Merge(dst, src)
|
||||
}
|
||||
func (m *ProductSearchResults) XXX_Size() int {
|
||||
return xxx_messageInfo_ProductSearchResults.Size(m)
|
||||
}
|
||||
func (m *ProductSearchResults) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProductSearchResults.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProductSearchResults proto.InternalMessageInfo
|
||||
|
||||
func (m *ProductSearchResults) GetCategory() ProductSearchCategory {
|
||||
if m != nil {
|
||||
return m.Category
|
||||
}
|
||||
return ProductSearchCategory_PRODUCT_SEARCH_CATEGORY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults) GetProductCategory() string {
|
||||
if m != nil {
|
||||
return m.ProductCategory
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults) GetIndexTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.IndexTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults) GetProducts() []*ProductSearchResults_ProductInfo {
|
||||
if m != nil {
|
||||
return m.Products
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults) GetResults() []*ProductSearchResults_Result {
|
||||
if m != nil {
|
||||
return m.Results
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Information about a product.
|
||||
type ProductSearchResults_ProductInfo struct {
|
||||
// Product ID.
|
||||
ProductId string `protobuf:"bytes,1,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
|
||||
// The URI of the image which matched the query image.
|
||||
//
|
||||
// This field is returned only if `view` is set to `FULL` in
|
||||
// the request.
|
||||
ImageUri string `protobuf:"bytes,2,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
|
||||
// A confidence level on the match, ranging from 0 (no confidence) to
|
||||
// 1 (full confidence).
|
||||
//
|
||||
// This field is returned only if `view` is set to `FULL` in
|
||||
// the request.
|
||||
Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_ProductInfo) Reset() { *m = ProductSearchResults_ProductInfo{} }
|
||||
func (m *ProductSearchResults_ProductInfo) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProductSearchResults_ProductInfo) ProtoMessage() {}
|
||||
func (*ProductSearchResults_ProductInfo) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1, 0}
|
||||
}
|
||||
func (m *ProductSearchResults_ProductInfo) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProductSearchResults_ProductInfo.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProductSearchResults_ProductInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProductSearchResults_ProductInfo.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProductSearchResults_ProductInfo) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProductSearchResults_ProductInfo.Merge(dst, src)
|
||||
}
|
||||
func (m *ProductSearchResults_ProductInfo) XXX_Size() int {
|
||||
return xxx_messageInfo_ProductSearchResults_ProductInfo.Size(m)
|
||||
}
|
||||
func (m *ProductSearchResults_ProductInfo) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProductSearchResults_ProductInfo.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProductSearchResults_ProductInfo proto.InternalMessageInfo
|
||||
|
||||
func (m *ProductSearchResults_ProductInfo) GetProductId() string {
|
||||
if m != nil {
|
||||
return m.ProductId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_ProductInfo) GetImageUri() string {
|
||||
if m != nil {
|
||||
return m.ImageUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_ProductInfo) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Information about a product.
|
||||
type ProductSearchResults_Result struct {
|
||||
// The Product.
|
||||
Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
|
||||
// A confidence level on the match, ranging from 0 (no confidence) to
|
||||
// 1 (full confidence).
|
||||
//
|
||||
// This field is returned only if `view` is set to `FULL` in
|
||||
// the request.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// The resource name of the image from the product that is the closest match
|
||||
// to the query.
|
||||
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_Result) Reset() { *m = ProductSearchResults_Result{} }
|
||||
func (m *ProductSearchResults_Result) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProductSearchResults_Result) ProtoMessage() {}
|
||||
func (*ProductSearchResults_Result) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_product_search_5afe37c43a5f30cd, []int{1, 1}
|
||||
}
|
||||
func (m *ProductSearchResults_Result) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProductSearchResults_Result.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProductSearchResults_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProductSearchResults_Result.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProductSearchResults_Result) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProductSearchResults_Result.Merge(dst, src)
|
||||
}
|
||||
func (m *ProductSearchResults_Result) XXX_Size() int {
|
||||
return xxx_messageInfo_ProductSearchResults_Result.Size(m)
|
||||
}
|
||||
func (m *ProductSearchResults_Result) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProductSearchResults_Result.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProductSearchResults_Result proto.InternalMessageInfo
|
||||
|
||||
func (m *ProductSearchResults_Result) GetProduct() *Product {
|
||||
if m != nil {
|
||||
return m.Product
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_Result) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ProductSearchResults_Result) GetImage() string {
|
||||
if m != nil {
|
||||
return m.Image
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ProductSearchParams)(nil), "google.cloud.vision.v1p3beta1.ProductSearchParams")
|
||||
proto.RegisterType((*ProductSearchResults)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults")
|
||||
proto.RegisterType((*ProductSearchResults_ProductInfo)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.ProductInfo")
|
||||
proto.RegisterType((*ProductSearchResults_Result)(nil), "google.cloud.vision.v1p3beta1.ProductSearchResults.Result")
|
||||
proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchCategory", ProductSearchCategory_name, ProductSearchCategory_value)
|
||||
proto.RegisterEnum("google.cloud.vision.v1p3beta1.ProductSearchResultsView", ProductSearchResultsView_name, ProductSearchResultsView_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p3beta1/product_search.proto", fileDescriptor_product_search_5afe37c43a5f30cd)
|
||||
}
|
||||
|
||||
var fileDescriptor_product_search_5afe37c43a5f30cd = []byte{
|
||||
// 698 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xd3, 0x30,
|
||||
0x14, 0xc6, 0x97, 0xfe, 0x5b, 0x73, 0x3a, 0xa0, 0x98, 0x31, 0x45, 0x85, 0x69, 0xdd, 0x90, 0xa0,
|
||||
0x0c, 0x48, 0xb4, 0x0e, 0x84, 0x18, 0x17, 0xd0, 0x76, 0xdd, 0x56, 0x31, 0x6d, 0x91, 0xdb, 0x22,
|
||||
0x01, 0x17, 0x91, 0x9b, 0x78, 0xc1, 0x52, 0x12, 0x47, 0x49, 0xda, 0x51, 0xee, 0x78, 0x20, 0x5e,
|
||||
0x88, 0x27, 0xe1, 0x12, 0xd5, 0x49, 0xba, 0x15, 0x75, 0x1b, 0x9b, 0xc4, 0x55, 0x75, 0x4e, 0xfd,
|
||||
0xfb, 0x3e, 0xfb, 0xe4, 0xb3, 0xa1, 0x6e, 0x73, 0x6e, 0x3b, 0x54, 0x33, 0x1d, 0x3e, 0xb4, 0xb4,
|
||||
0x11, 0x0b, 0x19, 0xf7, 0xb4, 0xd1, 0x96, 0xbf, 0x3d, 0xa0, 0x11, 0xd9, 0xd2, 0xfc, 0x80, 0x5b,
|
||||
0x43, 0x33, 0x32, 0x42, 0x4a, 0x02, 0xf3, 0xab, 0xea, 0x07, 0x3c, 0xe2, 0x68, 0x35, 0x66, 0x54,
|
||||
0xc1, 0xa8, 0x31, 0xa3, 0x4e, 0x99, 0xca, 0xc3, 0x44, 0x92, 0xf8, 0x4c, 0x23, 0x9e, 0xc7, 0x23,
|
||||
0x12, 0x31, 0xee, 0x85, 0x31, 0x5c, 0x79, 0x7e, 0xb9, 0xa1, 0x4d, 0xb9, 0x4b, 0xa3, 0x60, 0x9c,
|
||||
0xac, 0xde, 0xb9, 0xce, 0xf6, 0x8c, 0x90, 0x06, 0x23, 0x66, 0xd2, 0x84, 0x5d, 0x4b, 0x58, 0x51,
|
||||
0x0d, 0x86, 0x27, 0x5a, 0xc4, 0x5c, 0x1a, 0x46, 0xc4, 0xf5, 0xe3, 0x05, 0x1b, 0x3f, 0x73, 0x70,
|
||||
0x4f, 0x8f, 0x15, 0xba, 0x42, 0x40, 0x27, 0x01, 0x71, 0x43, 0xb4, 0x0e, 0x4b, 0x26, 0x89, 0x88,
|
||||
0xc3, 0x6d, 0xc3, 0x23, 0x2e, 0x55, 0xa4, 0xaa, 0x54, 0x93, 0x71, 0x29, 0xe9, 0x1d, 0x11, 0x97,
|
||||
0x22, 0x1d, 0x8a, 0x26, 0x89, 0xa8, 0xcd, 0x83, 0xb1, 0x92, 0xa9, 0x4a, 0xb5, 0xdb, 0xf5, 0x97,
|
||||
0xea, 0xa5, 0x53, 0x51, 0x67, 0x8c, 0x5a, 0x09, 0x8b, 0xa7, 0x2a, 0xe8, 0x29, 0x94, 0xd3, 0xd3,
|
||||
0x4c, 0x95, 0xf3, 0xc2, 0xf8, 0x4e, 0xd2, 0x4f, 0x21, 0xc4, 0x41, 0xf1, 0x78, 0xe0, 0x12, 0x87,
|
||||
0x7d, 0xa7, 0x96, 0x31, 0xe0, 0x43, 0xcf, 0x62, 0x9e, 0x6d, 0xf8, 0xdc, 0x19, 0x2b, 0xd9, 0xaa,
|
||||
0x54, 0x2b, 0xd5, 0x5f, 0x5d, 0xb1, 0x99, 0xa3, 0x29, 0xde, 0x4c, 0x68, 0x9d, 0x3b, 0x63, 0xbc,
|
||||
0xe2, 0xcd, 0xed, 0x23, 0x1d, 0x6e, 0xcd, 0xba, 0xc8, 0xc2, 0xe5, 0xd9, 0x15, 0x2e, 0x33, 0xda,
|
||||
0x4b, 0x83, 0xf3, 0x8a, 0x1f, 0x20, 0x37, 0x62, 0xf4, 0x54, 0xc9, 0x89, 0xd9, 0xbd, 0xbe, 0xce,
|
||||
0xec, 0x30, 0x0d, 0x87, 0x4e, 0x14, 0x7e, 0x64, 0xf4, 0x14, 0x0b, 0x11, 0xb4, 0x06, 0xa5, 0xb3,
|
||||
0x20, 0x44, 0x4a, 0x41, 0x4c, 0x0d, 0xfc, 0x14, 0x8a, 0xd0, 0x0b, 0x40, 0x7f, 0xcd, 0x96, 0xd1,
|
||||
0x50, 0x59, 0xac, 0x66, 0x6b, 0x32, 0xbe, 0x3b, 0x3b, 0x5d, 0x46, 0x43, 0xb4, 0x02, 0x85, 0x13,
|
||||
0xe6, 0x44, 0x34, 0x50, 0x8a, 0x42, 0x2a, 0xa9, 0x36, 0x7e, 0xe5, 0x60, 0x79, 0xde, 0x56, 0x66,
|
||||
0xd2, 0x20, 0xfd, 0xb7, 0x34, 0xe4, 0xe6, 0xa7, 0xe1, 0x0d, 0x00, 0xf3, 0x2c, 0xfa, 0xcd, 0x98,
|
||||
0xc4, 0x5b, 0x84, 0xb1, 0x54, 0xaf, 0xa4, 0xf6, 0x69, 0xf6, 0xd5, 0x5e, 0x9a, 0x7d, 0x2c, 0x8b,
|
||||
0xd5, 0x93, 0x1a, 0x7d, 0x81, 0x62, 0xa2, 0x16, 0x2a, 0xd9, 0x6a, 0xb6, 0x56, 0xaa, 0xbf, 0xbb,
|
||||
0xc1, 0x97, 0x48, 0x9b, 0x1d, 0xef, 0x84, 0xe3, 0xa9, 0x20, 0xea, 0xc1, 0x62, 0x10, 0x2f, 0x50,
|
||||
0xf2, 0x42, 0x7b, 0xe7, 0x26, 0xda, 0xf1, 0x2f, 0x4e, 0xa5, 0x2a, 0x06, 0x94, 0xce, 0xd9, 0xa1,
|
||||
0x55, 0x48, 0xbf, 0xb3, 0xc1, 0xac, 0xe4, 0xa2, 0xca, 0x49, 0xa7, 0x63, 0xa1, 0x07, 0x20, 0x33,
|
||||
0x97, 0xd8, 0xd4, 0x18, 0x06, 0x4c, 0x8c, 0x46, 0xc6, 0x45, 0xd1, 0xe8, 0x07, 0x0c, 0x2d, 0x43,
|
||||
0x3e, 0x34, 0x79, 0x40, 0xc5, 0x9d, 0xc9, 0xe0, 0xb8, 0xa8, 0x8c, 0xa0, 0x10, 0x7b, 0xa2, 0xf7,
|
||||
0xb0, 0x98, 0x28, 0x09, 0xe1, 0x52, 0xfd, 0xf1, 0xbf, 0x1d, 0x00, 0xa7, 0xd8, 0x99, 0x43, 0xe6,
|
||||
0x9c, 0xc3, 0xa4, 0x2b, 0xf6, 0x20, 0x7c, 0x65, 0x1c, 0x17, 0x9b, 0x7d, 0xb8, 0x3f, 0x37, 0x14,
|
||||
0xe8, 0x09, 0x3c, 0xd2, 0xf1, 0xf1, 0x6e, 0xbf, 0xd5, 0x33, 0xba, 0xed, 0x06, 0x6e, 0x1d, 0x18,
|
||||
0xad, 0x46, 0xaf, 0xbd, 0x7f, 0x8c, 0x3f, 0x19, 0xfd, 0xa3, 0xae, 0xde, 0x6e, 0x75, 0xf6, 0x3a,
|
||||
0xed, 0xdd, 0xf2, 0x02, 0x92, 0x21, 0xdf, 0x3d, 0x38, 0x6e, 0x77, 0xcb, 0x12, 0x2a, 0x42, 0xae,
|
||||
0xd9, 0xd8, 0xef, 0x96, 0x33, 0x9b, 0x1a, 0x28, 0x17, 0xdd, 0x9e, 0x09, 0xd0, 0x6c, 0x74, 0x3b,
|
||||
0xad, 0xf2, 0xc2, 0x04, 0xd8, 0xeb, 0x1f, 0x1e, 0x96, 0xa5, 0xe6, 0x0f, 0x09, 0xd6, 0x4d, 0xee,
|
||||
0x5e, 0x7e, 0xd4, 0x26, 0x9a, 0x7d, 0x37, 0x27, 0x29, 0xd3, 0xa5, 0xcf, 0xad, 0x04, 0xb2, 0xb9,
|
||||
0x43, 0x3c, 0x5b, 0xe5, 0x81, 0xad, 0xd9, 0xd4, 0x13, 0x19, 0xd4, 0xe2, 0xbf, 0x88, 0xcf, 0xc2,
|
||||
0x0b, 0x1e, 0xf3, 0xb7, 0x71, 0xe3, 0xb7, 0x24, 0x0d, 0x0a, 0x02, 0xd9, 0xfe, 0x13, 0x00, 0x00,
|
||||
0xff, 0xff, 0x4f, 0x50, 0xae, 0xbc, 0x9d, 0x06, 0x00, 0x00,
|
||||
}
|
2963
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go
generated
vendored
Normal file
2963
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/product_search_service.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
797
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go
generated
vendored
Normal file
797
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/text_annotation.pb.go
generated
vendored
Normal file
@ -0,0 +1,797 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p3beta1/text_annotation.proto
|
||||
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Enum to denote the type of break found. New line, space etc.
|
||||
type TextAnnotation_DetectedBreak_BreakType int32
|
||||
|
||||
const (
|
||||
// Unknown break label type.
|
||||
TextAnnotation_DetectedBreak_UNKNOWN TextAnnotation_DetectedBreak_BreakType = 0
|
||||
// Regular space.
|
||||
TextAnnotation_DetectedBreak_SPACE TextAnnotation_DetectedBreak_BreakType = 1
|
||||
// Sure space (very wide).
|
||||
TextAnnotation_DetectedBreak_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 2
|
||||
// Line-wrapping break.
|
||||
TextAnnotation_DetectedBreak_EOL_SURE_SPACE TextAnnotation_DetectedBreak_BreakType = 3
|
||||
// End-line hyphen that is not present in text; does not co-occur with
|
||||
// `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
|
||||
TextAnnotation_DetectedBreak_HYPHEN TextAnnotation_DetectedBreak_BreakType = 4
|
||||
// Line break that ends a paragraph.
|
||||
TextAnnotation_DetectedBreak_LINE_BREAK TextAnnotation_DetectedBreak_BreakType = 5
|
||||
)
|
||||
|
||||
var TextAnnotation_DetectedBreak_BreakType_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "SPACE",
|
||||
2: "SURE_SPACE",
|
||||
3: "EOL_SURE_SPACE",
|
||||
4: "HYPHEN",
|
||||
5: "LINE_BREAK",
|
||||
}
|
||||
var TextAnnotation_DetectedBreak_BreakType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"SPACE": 1,
|
||||
"SURE_SPACE": 2,
|
||||
"EOL_SURE_SPACE": 3,
|
||||
"HYPHEN": 4,
|
||||
"LINE_BREAK": 5,
|
||||
}
|
||||
|
||||
func (x TextAnnotation_DetectedBreak_BreakType) String() string {
|
||||
return proto.EnumName(TextAnnotation_DetectedBreak_BreakType_name, int32(x))
|
||||
}
|
||||
func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 1, 0}
|
||||
}
|
||||
|
||||
// Type of a block (text, image etc) as identified by OCR.
|
||||
type Block_BlockType int32
|
||||
|
||||
const (
|
||||
// Unknown block type.
|
||||
Block_UNKNOWN Block_BlockType = 0
|
||||
// Regular text block.
|
||||
Block_TEXT Block_BlockType = 1
|
||||
// Table block.
|
||||
Block_TABLE Block_BlockType = 2
|
||||
// Image block.
|
||||
Block_PICTURE Block_BlockType = 3
|
||||
// Horizontal/vertical line box.
|
||||
Block_RULER Block_BlockType = 4
|
||||
// Barcode block.
|
||||
Block_BARCODE Block_BlockType = 5
|
||||
)
|
||||
|
||||
var Block_BlockType_name = map[int32]string{
|
||||
0: "UNKNOWN",
|
||||
1: "TEXT",
|
||||
2: "TABLE",
|
||||
3: "PICTURE",
|
||||
4: "RULER",
|
||||
5: "BARCODE",
|
||||
}
|
||||
var Block_BlockType_value = map[string]int32{
|
||||
"UNKNOWN": 0,
|
||||
"TEXT": 1,
|
||||
"TABLE": 2,
|
||||
"PICTURE": 3,
|
||||
"RULER": 4,
|
||||
"BARCODE": 5,
|
||||
}
|
||||
|
||||
func (x Block_BlockType) String() string {
|
||||
return proto.EnumName(Block_BlockType_name, int32(x))
|
||||
}
|
||||
func (Block_BlockType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{2, 0}
|
||||
}
|
||||
|
||||
// TextAnnotation contains a structured representation of OCR extracted text.
|
||||
// The hierarchy of an OCR extracted text structure is like this:
|
||||
// TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
||||
// Each structural component, starting from Page, may further have their own
|
||||
// properties. Properties describe detected languages, breaks etc.. Please refer
|
||||
// to the [TextAnnotation.TextProperty][google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty] message definition below for more
|
||||
// detail.
|
||||
type TextAnnotation struct {
|
||||
// List of pages detected by OCR.
|
||||
Pages []*Page `protobuf:"bytes,1,rep,name=pages,proto3" json:"pages,omitempty"`
|
||||
// UTF-8 text detected on the pages.
|
||||
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation) Reset() { *m = TextAnnotation{} }
|
||||
func (m *TextAnnotation) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation) ProtoMessage() {}
|
||||
func (*TextAnnotation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{0}
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation) GetPages() []*Page {
|
||||
if m != nil {
|
||||
return m.Pages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TextAnnotation) GetText() string {
|
||||
if m != nil {
|
||||
return m.Text
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Detected language for a structural component.
|
||||
type TextAnnotation_DetectedLanguage struct {
|
||||
// The BCP-47 language code, such as "en-US" or "sr-Latn". For more
|
||||
// information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
// Confidence of detected language. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) Reset() { *m = TextAnnotation_DetectedLanguage{} }
|
||||
func (m *TextAnnotation_DetectedLanguage) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedLanguage) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 0}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedLanguage.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedLanguage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedLanguage proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
return m.LanguageCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Detected start or end of a structural component.
|
||||
type TextAnnotation_DetectedBreak struct {
|
||||
// Detected break type.
|
||||
Type TextAnnotation_DetectedBreak_BreakType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType" json:"type,omitempty"`
|
||||
// True if break prepends the element.
|
||||
IsPrefix bool `protobuf:"varint,2,opt,name=is_prefix,json=isPrefix,proto3" json:"is_prefix,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) Reset() { *m = TextAnnotation_DetectedBreak{} }
|
||||
func (m *TextAnnotation_DetectedBreak) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_DetectedBreak) ProtoMessage() {}
|
||||
func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 1}
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_DetectedBreak.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_DetectedBreak.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_DetectedBreak proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) GetType() TextAnnotation_DetectedBreak_BreakType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return TextAnnotation_DetectedBreak_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool {
|
||||
if m != nil {
|
||||
return m.IsPrefix
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Additional information detected on the structural component.
|
||||
type TextAnnotation_TextProperty struct {
|
||||
// A list of detected languages together with confidence.
|
||||
DetectedLanguages []*TextAnnotation_DetectedLanguage `protobuf:"bytes,1,rep,name=detected_languages,json=detectedLanguages,proto3" json:"detected_languages,omitempty"`
|
||||
// Detected start or end of a text segment.
|
||||
DetectedBreak *TextAnnotation_DetectedBreak `protobuf:"bytes,2,opt,name=detected_break,json=detectedBreak,proto3" json:"detected_break,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_TextProperty) Reset() { *m = TextAnnotation_TextProperty{} }
|
||||
func (m *TextAnnotation_TextProperty) String() string { return proto.CompactTextString(m) }
|
||||
func (*TextAnnotation_TextProperty) ProtoMessage() {}
|
||||
func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{0, 2}
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Unmarshal(m, b)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *TextAnnotation_TextProperty) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.Merge(dst, src)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_Size() int {
|
||||
return xxx_messageInfo_TextAnnotation_TextProperty.Size(m)
|
||||
}
|
||||
func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_TextAnnotation_TextProperty.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_TextAnnotation_TextProperty proto.InternalMessageInfo
|
||||
|
||||
func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage {
|
||||
if m != nil {
|
||||
return m.DetectedLanguages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *TextAnnotation_TextProperty) GetDetectedBreak() *TextAnnotation_DetectedBreak {
|
||||
if m != nil {
|
||||
return m.DetectedBreak
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Detected page from OCR.
|
||||
type Page struct {
|
||||
// Additional information detected on the page.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// Page width. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
|
||||
// Page height. For PDFs the unit is points. For images (including
|
||||
// TIFFs) the unit is pixels.
|
||||
Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
|
||||
// List of blocks of text, images etc on this page.
|
||||
Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
|
||||
// Confidence of the OCR results on the page. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Page) Reset() { *m = Page{} }
|
||||
func (m *Page) String() string { return proto.CompactTextString(m) }
|
||||
func (*Page) ProtoMessage() {}
|
||||
func (*Page) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{1}
|
||||
}
|
||||
func (m *Page) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Page.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Page.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Page) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Page.Merge(dst, src)
|
||||
}
|
||||
func (m *Page) XXX_Size() int {
|
||||
return xxx_messageInfo_Page.Size(m)
|
||||
}
|
||||
func (m *Page) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Page.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Page proto.InternalMessageInfo
|
||||
|
||||
func (m *Page) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Page) GetWidth() int32 {
|
||||
if m != nil {
|
||||
return m.Width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Page) GetHeight() int32 {
|
||||
if m != nil {
|
||||
return m.Height
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Page) GetBlocks() []*Block {
|
||||
if m != nil {
|
||||
return m.Blocks
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Page) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Logical element on the page.
|
||||
type Block struct {
|
||||
// Additional information detected for the block.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the block.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
// is represented as around the top-left corner as defined when the text is
|
||||
// read in the 'natural' orientation.
|
||||
// For example:
|
||||
//
|
||||
// * when the text is horizontal it might look like:
|
||||
//
|
||||
// 0----1
|
||||
// | |
|
||||
// 3----2
|
||||
//
|
||||
// * when it's rotated 180 degrees around the top-left corner it becomes:
|
||||
//
|
||||
// 2----3
|
||||
// | |
|
||||
// 1----0
|
||||
//
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of paragraphs in this block (if this blocks is of type text).
|
||||
Paragraphs []*Paragraph `protobuf:"bytes,3,rep,name=paragraphs,proto3" json:"paragraphs,omitempty"`
|
||||
// Detected block type (text, image etc) for this block.
|
||||
BlockType Block_BlockType `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1p3beta1.Block_BlockType" json:"block_type,omitempty"`
|
||||
// Confidence of the OCR results on the block. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Block) Reset() { *m = Block{} }
|
||||
func (m *Block) String() string { return proto.CompactTextString(m) }
|
||||
func (*Block) ProtoMessage() {}
|
||||
func (*Block) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{2}
|
||||
}
|
||||
func (m *Block) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Block.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Block.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Block) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Block.Merge(dst, src)
|
||||
}
|
||||
func (m *Block) XXX_Size() int {
|
||||
return xxx_messageInfo_Block.Size(m)
|
||||
}
|
||||
func (m *Block) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Block.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Block proto.InternalMessageInfo
|
||||
|
||||
func (m *Block) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Block) GetBoundingBox() *BoundingPoly {
|
||||
if m != nil {
|
||||
return m.BoundingBox
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Block) GetParagraphs() []*Paragraph {
|
||||
if m != nil {
|
||||
return m.Paragraphs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Block) GetBlockType() Block_BlockType {
|
||||
if m != nil {
|
||||
return m.BlockType
|
||||
}
|
||||
return Block_UNKNOWN
|
||||
}
|
||||
|
||||
func (m *Block) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Structural unit of text representing a number of words in certain order.
|
||||
type Paragraph struct {
|
||||
// Additional information detected for the paragraph.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the paragraph.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
// is represented as around the top-left corner as defined when the text is
|
||||
// read in the 'natural' orientation.
|
||||
// For example:
|
||||
// * when the text is horizontal it might look like:
|
||||
// 0----1
|
||||
// | |
|
||||
// 3----2
|
||||
// * when it's rotated 180 degrees around the top-left corner it becomes:
|
||||
// 2----3
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of words in this paragraph.
|
||||
Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
|
||||
// Confidence of the OCR results for the paragraph. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Paragraph) Reset() { *m = Paragraph{} }
|
||||
func (m *Paragraph) String() string { return proto.CompactTextString(m) }
|
||||
func (*Paragraph) ProtoMessage() {}
|
||||
func (*Paragraph) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{3}
|
||||
}
|
||||
func (m *Paragraph) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Paragraph.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Paragraph.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Paragraph) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Paragraph.Merge(dst, src)
|
||||
}
|
||||
func (m *Paragraph) XXX_Size() int {
|
||||
return xxx_messageInfo_Paragraph.Size(m)
|
||||
}
|
||||
func (m *Paragraph) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Paragraph.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Paragraph proto.InternalMessageInfo
|
||||
|
||||
func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Paragraph) GetBoundingBox() *BoundingPoly {
|
||||
if m != nil {
|
||||
return m.BoundingBox
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Paragraph) GetWords() []*Word {
|
||||
if m != nil {
|
||||
return m.Words
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Paragraph) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A word representation.
|
||||
type Word struct {
|
||||
// Additional information detected for the word.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the word.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
// is represented as around the top-left corner as defined when the text is
|
||||
// read in the 'natural' orientation.
|
||||
// For example:
|
||||
// * when the text is horizontal it might look like:
|
||||
// 0----1
|
||||
// | |
|
||||
// 3----2
|
||||
// * when it's rotated 180 degrees around the top-left corner it becomes:
|
||||
// 2----3
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// List of symbols in the word.
|
||||
// The order of the symbols follows the natural reading order.
|
||||
Symbols []*Symbol `protobuf:"bytes,3,rep,name=symbols,proto3" json:"symbols,omitempty"`
|
||||
// Confidence of the OCR results for the word. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Word) Reset() { *m = Word{} }
|
||||
func (m *Word) String() string { return proto.CompactTextString(m) }
|
||||
func (*Word) ProtoMessage() {}
|
||||
func (*Word) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{4}
|
||||
}
|
||||
func (m *Word) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Word.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Word.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Word) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Word.Merge(dst, src)
|
||||
}
|
||||
func (m *Word) XXX_Size() int {
|
||||
return xxx_messageInfo_Word.Size(m)
|
||||
}
|
||||
func (m *Word) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Word.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Word proto.InternalMessageInfo
|
||||
|
||||
func (m *Word) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Word) GetBoundingBox() *BoundingPoly {
|
||||
if m != nil {
|
||||
return m.BoundingBox
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Word) GetSymbols() []*Symbol {
|
||||
if m != nil {
|
||||
return m.Symbols
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Word) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// A single symbol representation.
|
||||
type Symbol struct {
|
||||
// Additional information detected for the symbol.
|
||||
Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
|
||||
// The bounding box for the symbol.
|
||||
// The vertices are in the order of top-left, top-right, bottom-right,
|
||||
// bottom-left. When a rotation of the bounding box is detected the rotation
|
||||
// is represented as around the top-left corner as defined when the text is
|
||||
// read in the 'natural' orientation.
|
||||
// For example:
|
||||
// * when the text is horizontal it might look like:
|
||||
// 0----1
|
||||
// | |
|
||||
// 3----2
|
||||
// * when it's rotated 180 degrees around the top-left corner it becomes:
|
||||
// 2----3
|
||||
// | |
|
||||
// 1----0
|
||||
// and the vertice order will still be (0, 1, 2, 3).
|
||||
BoundingBox *BoundingPoly `protobuf:"bytes,2,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"`
|
||||
// The actual UTF-8 representation of the symbol.
|
||||
Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
|
||||
// Confidence of the OCR results for the symbol. Range [0, 1].
|
||||
Confidence float32 `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Symbol) Reset() { *m = Symbol{} }
|
||||
func (m *Symbol) String() string { return proto.CompactTextString(m) }
|
||||
func (*Symbol) ProtoMessage() {}
|
||||
func (*Symbol) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_text_annotation_26024690f7632d99, []int{5}
|
||||
}
|
||||
func (m *Symbol) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Symbol.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Symbol.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Symbol) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Symbol.Merge(dst, src)
|
||||
}
|
||||
func (m *Symbol) XXX_Size() int {
|
||||
return xxx_messageInfo_Symbol.Size(m)
|
||||
}
|
||||
func (m *Symbol) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Symbol.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Symbol proto.InternalMessageInfo
|
||||
|
||||
func (m *Symbol) GetProperty() *TextAnnotation_TextProperty {
|
||||
if m != nil {
|
||||
return m.Property
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Symbol) GetBoundingBox() *BoundingPoly {
|
||||
if m != nil {
|
||||
return m.BoundingBox
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Symbol) GetText() string {
|
||||
if m != nil {
|
||||
return m.Text
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Symbol) GetConfidence() float32 {
|
||||
if m != nil {
|
||||
return m.Confidence
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*TextAnnotation)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation")
|
||||
proto.RegisterType((*TextAnnotation_DetectedLanguage)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedLanguage")
|
||||
proto.RegisterType((*TextAnnotation_DetectedBreak)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.DetectedBreak")
|
||||
proto.RegisterType((*TextAnnotation_TextProperty)(nil), "google.cloud.vision.v1p3beta1.TextAnnotation.TextProperty")
|
||||
proto.RegisterType((*Page)(nil), "google.cloud.vision.v1p3beta1.Page")
|
||||
proto.RegisterType((*Block)(nil), "google.cloud.vision.v1p3beta1.Block")
|
||||
proto.RegisterType((*Paragraph)(nil), "google.cloud.vision.v1p3beta1.Paragraph")
|
||||
proto.RegisterType((*Word)(nil), "google.cloud.vision.v1p3beta1.Word")
|
||||
proto.RegisterType((*Symbol)(nil), "google.cloud.vision.v1p3beta1.Symbol")
|
||||
proto.RegisterEnum("google.cloud.vision.v1p3beta1.TextAnnotation_DetectedBreak_BreakType", TextAnnotation_DetectedBreak_BreakType_name, TextAnnotation_DetectedBreak_BreakType_value)
|
||||
proto.RegisterEnum("google.cloud.vision.v1p3beta1.Block_BlockType", Block_BlockType_name, Block_BlockType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p3beta1/text_annotation.proto", fileDescriptor_text_annotation_26024690f7632d99)
|
||||
}
|
||||
|
||||
var fileDescriptor_text_annotation_26024690f7632d99 = []byte{
|
||||
// 775 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0x4f, 0x6f, 0xd3, 0x48,
|
||||
0x14, 0x5f, 0x27, 0x76, 0x1a, 0xbf, 0xb4, 0x91, 0x77, 0x76, 0xb5, 0x8a, 0xb2, 0xbb, 0xa8, 0xa4,
|
||||
0x20, 0x55, 0x02, 0x39, 0x6a, 0x7a, 0x2a, 0x45, 0xa0, 0x38, 0xb5, 0xd4, 0xaa, 0x21, 0xb5, 0xa6,
|
||||
0x09, 0xa5, 0x5c, 0x2c, 0xff, 0x99, 0x3a, 0x56, 0x13, 0x8f, 0x65, 0xbb, 0x6d, 0x72, 0xe5, 0x8a,
|
||||
0x04, 0x5f, 0x88, 0x2f, 0x83, 0xc4, 0x09, 0xf1, 0x01, 0x38, 0x22, 0x8f, 0xed, 0x34, 0x09, 0xa2,
|
||||
0xe6, 0x8f, 0x38, 0xf4, 0x12, 0xcd, 0x7b, 0x79, 0xbf, 0x37, 0xef, 0xf7, 0x7b, 0xf3, 0x3c, 0x03,
|
||||
0xdb, 0x0e, 0xa5, 0xce, 0x88, 0x34, 0xad, 0x11, 0xbd, 0xb0, 0x9b, 0x97, 0x6e, 0xe8, 0x52, 0xaf,
|
||||
0x79, 0xb9, 0xe5, 0x6f, 0x9b, 0x24, 0x32, 0xb6, 0x9a, 0x11, 0x99, 0x44, 0xba, 0xe1, 0x79, 0x34,
|
||||
0x32, 0x22, 0x97, 0x7a, 0xb2, 0x1f, 0xd0, 0x88, 0xa2, 0xff, 0x13, 0x90, 0xcc, 0x40, 0x72, 0x02,
|
||||
0x92, 0x67, 0xa0, 0xfa, 0x7f, 0x69, 0x4e, 0xc3, 0x77, 0x9b, 0xd7, 0xd8, 0x30, 0x01, 0xd7, 0x1f,
|
||||
0xde, 0xbc, 0xa3, 0x43, 0xe8, 0x98, 0x44, 0xc1, 0x34, 0x89, 0x6e, 0xbc, 0x16, 0xa0, 0xda, 0x27,
|
||||
0x93, 0xa8, 0x3d, 0xcb, 0x83, 0x76, 0x40, 0xf0, 0x0d, 0x87, 0x84, 0x35, 0x6e, 0xbd, 0xb8, 0x59,
|
||||
0x69, 0x6d, 0xc8, 0x37, 0x56, 0x23, 0x6b, 0x86, 0x43, 0x70, 0x82, 0x40, 0x08, 0xf8, 0x98, 0x51,
|
||||
0xad, 0xb0, 0xce, 0x6d, 0x8a, 0x98, 0xad, 0xeb, 0x27, 0x20, 0xed, 0x91, 0x88, 0x58, 0x11, 0xb1,
|
||||
0xbb, 0x86, 0xe7, 0x5c, 0x18, 0x0e, 0x41, 0x1b, 0xb0, 0x36, 0x4a, 0xd7, 0xba, 0x45, 0x6d, 0x52,
|
||||
0xe3, 0x18, 0x60, 0x35, 0x73, 0x76, 0xa8, 0x4d, 0xd0, 0x1d, 0x00, 0x8b, 0x7a, 0x67, 0xae, 0x4d,
|
||||
0x3c, 0x8b, 0xb0, 0x94, 0x05, 0x3c, 0xe7, 0xa9, 0x7f, 0xe2, 0x60, 0x2d, 0xcb, 0xac, 0x04, 0xc4,
|
||||
0x38, 0x47, 0xa7, 0xc0, 0x47, 0x53, 0x3f, 0xc9, 0x56, 0x6d, 0xa9, 0x39, 0x85, 0x2f, 0xd2, 0x96,
|
||||
0x17, 0x52, 0xc9, 0xec, 0xb7, 0x3f, 0xf5, 0x09, 0x66, 0x29, 0xd1, 0xbf, 0x20, 0xba, 0xa1, 0xee,
|
||||
0x07, 0xe4, 0xcc, 0x9d, 0xb0, 0x5a, 0xca, 0xb8, 0xec, 0x86, 0x1a, 0xb3, 0x1b, 0x16, 0x88, 0xb3,
|
||||
0x78, 0x54, 0x81, 0x95, 0x41, 0xef, 0xb0, 0x77, 0x74, 0xd2, 0x93, 0xfe, 0x40, 0x22, 0x08, 0xc7,
|
||||
0x5a, 0xbb, 0xa3, 0x4a, 0x1c, 0xaa, 0x02, 0x1c, 0x0f, 0xb0, 0xaa, 0x27, 0x76, 0x01, 0x21, 0xa8,
|
||||
0xaa, 0x47, 0x5d, 0x7d, 0xce, 0x57, 0x44, 0x00, 0xa5, 0xfd, 0x53, 0x6d, 0x5f, 0xed, 0x49, 0x7c,
|
||||
0x1c, 0xdf, 0x3d, 0xe8, 0xa9, 0xba, 0x82, 0xd5, 0xf6, 0xa1, 0x24, 0xd4, 0xdf, 0x73, 0xb0, 0x1a,
|
||||
0x97, 0xac, 0x05, 0xd4, 0x27, 0x41, 0x34, 0x45, 0x63, 0x40, 0x76, 0x5a, 0xb3, 0x9e, 0x09, 0x97,
|
||||
0x35, 0xed, 0xc9, 0xcf, 0x71, 0xcf, 0x1a, 0x84, 0xff, 0xb4, 0x97, 0x3c, 0x21, 0x32, 0xa1, 0x3a,
|
||||
0xdb, 0xce, 0x8c, 0xd9, 0x32, 0x19, 0x2a, 0xad, 0xdd, 0x5f, 0x90, 0x19, 0xaf, 0xd9, 0xf3, 0x66,
|
||||
0xe3, 0x23, 0x07, 0x7c, 0x7c, 0x9e, 0xd0, 0x73, 0x28, 0xfb, 0x29, 0x4f, 0xd6, 0xcd, 0x4a, 0xeb,
|
||||
0xd1, 0x8f, 0x6d, 0x33, 0xaf, 0x14, 0x9e, 0xe5, 0x42, 0x7f, 0x83, 0x70, 0xe5, 0xda, 0xd1, 0x90,
|
||||
0xd5, 0x2e, 0xe0, 0xc4, 0x40, 0xff, 0x40, 0x69, 0x48, 0x5c, 0x67, 0x18, 0xd5, 0x8a, 0xcc, 0x9d,
|
||||
0x5a, 0xe8, 0x31, 0x94, 0xcc, 0x11, 0xb5, 0xce, 0xc3, 0x1a, 0xcf, 0x54, 0xbd, 0x97, 0x53, 0x83,
|
||||
0x12, 0x07, 0xe3, 0x14, 0xb3, 0x74, 0x7e, 0x85, 0xe5, 0xf3, 0xdb, 0x78, 0x57, 0x04, 0x81, 0x21,
|
||||
0x7e, 0x1b, 0xdb, 0x1e, 0xac, 0x9a, 0xf4, 0xc2, 0xb3, 0x5d, 0xcf, 0xd1, 0x4d, 0x3a, 0x49, 0x1b,
|
||||
0xf6, 0x20, 0x8f, 0x45, 0x0a, 0xd1, 0xe8, 0x68, 0x8a, 0x2b, 0x59, 0x02, 0x85, 0x4e, 0xd0, 0x3e,
|
||||
0x80, 0x6f, 0x04, 0x86, 0x13, 0x18, 0xfe, 0x30, 0xac, 0x15, 0x99, 0x26, 0x9b, 0xb9, 0x9f, 0x87,
|
||||
0x14, 0x80, 0xe7, 0xb0, 0xe8, 0x19, 0x00, 0x53, 0x49, 0x67, 0xf3, 0xca, 0xb3, 0x79, 0x95, 0xbf,
|
||||
0x47, 0xdd, 0xe4, 0x97, 0x0d, 0xa6, 0x68, 0x66, 0xcb, 0x5c, 0xa9, 0x31, 0x88, 0x33, 0xdc, 0xe2,
|
||||
0x80, 0x96, 0x81, 0xef, 0xab, 0x2f, 0xfa, 0x12, 0x17, 0x8f, 0x6a, 0xbf, 0xad, 0x74, 0xe3, 0xd1,
|
||||
0xac, 0xc0, 0x8a, 0x76, 0xd0, 0xe9, 0x0f, 0x70, 0x3c, 0x93, 0x22, 0x08, 0x78, 0xd0, 0x55, 0xb1,
|
||||
0xc4, 0xc7, 0x7e, 0xa5, 0x8d, 0x3b, 0x47, 0x7b, 0xaa, 0x24, 0x34, 0xde, 0x14, 0x40, 0x9c, 0x91,
|
||||
0xbb, 0x35, 0x2d, 0xdc, 0x01, 0xe1, 0x8a, 0x06, 0x76, 0xd6, 0xbd, 0xbc, 0x8f, 0xfb, 0x09, 0x0d,
|
||||
0x6c, 0x9c, 0x20, 0x96, 0x44, 0xe6, 0xbf, 0x12, 0xf9, 0x6d, 0x01, 0xf8, 0x38, 0xfe, 0xd6, 0x68,
|
||||
0xf1, 0x14, 0x56, 0xc2, 0xe9, 0xd8, 0xa4, 0xa3, 0x4c, 0x8d, 0xfb, 0x39, 0xa9, 0x8e, 0x59, 0x34,
|
||||
0xce, 0x50, 0xb9, 0x8a, 0x7c, 0xe0, 0xa0, 0x94, 0x60, 0x6e, 0x8d, 0x26, 0xd9, 0x0d, 0x5e, 0xbc,
|
||||
0xbe, 0xc1, 0xf3, 0x68, 0x2a, 0xaf, 0x38, 0xb8, 0x6b, 0xd1, 0xf1, 0xcd, 0x7b, 0x2a, 0x7f, 0x2d,
|
||||
0x12, 0xd2, 0xe2, 0xe7, 0x87, 0xc6, 0xbd, 0xec, 0xa4, 0x28, 0x87, 0xc6, 0x77, 0x98, 0x4c, 0x03,
|
||||
0xa7, 0xe9, 0x10, 0x8f, 0x3d, 0x4e, 0x9a, 0xc9, 0x5f, 0x86, 0xef, 0x86, 0xdf, 0x78, 0xcd, 0xec,
|
||||
0x26, 0x8e, 0xcf, 0x1c, 0x67, 0x96, 0x18, 0x64, 0xfb, 0x4b, 0x00, 0x00, 0x00, 0xff, 0xff, 0x24,
|
||||
0x7c, 0x70, 0x3a, 0x71, 0x09, 0x00, 0x00,
|
||||
}
|
395
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/web_detection.pb.go
generated
vendored
Normal file
395
vendor/google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1/web_detection.pb.go
generated
vendored
Normal file
@ -0,0 +1,395 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/cloud/vision/v1p3beta1/web_detection.proto
|
||||
|
||||
package vision // import "google.golang.org/genproto/googleapis/cloud/vision/v1p3beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Relevant information for the image from the Internet.
|
||||
type WebDetection struct {
|
||||
// Deduced entities from similar images on the Internet.
|
||||
WebEntities []*WebDetection_WebEntity `protobuf:"bytes,1,rep,name=web_entities,json=webEntities,proto3" json:"web_entities,omitempty"`
|
||||
// Fully matching images from the Internet.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,2,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images from the Internet.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,3,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
// Web pages containing the matching images from the Internet.
|
||||
PagesWithMatchingImages []*WebDetection_WebPage `protobuf:"bytes,4,rep,name=pages_with_matching_images,json=pagesWithMatchingImages,proto3" json:"pages_with_matching_images,omitempty"`
|
||||
// The visually similar image results.
|
||||
VisuallySimilarImages []*WebDetection_WebImage `protobuf:"bytes,6,rep,name=visually_similar_images,json=visuallySimilarImages,proto3" json:"visually_similar_images,omitempty"`
|
||||
// Best guess text labels for the request image.
|
||||
BestGuessLabels []*WebDetection_WebLabel `protobuf:"bytes,8,rep,name=best_guess_labels,json=bestGuessLabels,proto3" json:"best_guess_labels,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection) Reset() { *m = WebDetection{} }
|
||||
func (m *WebDetection) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection) ProtoMessage() {}
|
||||
func (*WebDetection) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0}
|
||||
}
|
||||
func (m *WebDetection) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection.Size(m)
|
||||
}
|
||||
func (m *WebDetection) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity {
|
||||
if m != nil {
|
||||
return m.WebEntities
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage {
|
||||
if m != nil {
|
||||
return m.FullMatchingImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage {
|
||||
if m != nil {
|
||||
return m.PartialMatchingImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage {
|
||||
if m != nil {
|
||||
return m.PagesWithMatchingImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection) GetVisuallySimilarImages() []*WebDetection_WebImage {
|
||||
if m != nil {
|
||||
return m.VisuallySimilarImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel {
|
||||
if m != nil {
|
||||
return m.BestGuessLabels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Entity deduced from similar images on the Internet.
|
||||
type WebDetection_WebEntity struct {
|
||||
// Opaque entity ID.
|
||||
EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"`
|
||||
// Overall relevancy score for the entity.
|
||||
// Not normalized and not comparable across different image queries.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Canonical description of the entity, in English.
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) Reset() { *m = WebDetection_WebEntity{} }
|
||||
func (m *WebDetection_WebEntity) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebEntity) ProtoMessage() {}
|
||||
func (*WebDetection_WebEntity) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 0}
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebEntity) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebEntity.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebEntity.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebEntity) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebEntity.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebEntity proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebEntity) GetEntityId() string {
|
||||
if m != nil {
|
||||
return m.EntityId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebEntity) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Metadata for online images.
|
||||
type WebDetection_WebImage struct {
|
||||
// The result image URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the image.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebImage) Reset() { *m = WebDetection_WebImage{} }
|
||||
func (m *WebDetection_WebImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebImage) ProtoMessage() {}
|
||||
func (*WebDetection_WebImage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 1}
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebImage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebImage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebImage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebImage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebImage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebImage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebImage) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebImage) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// Metadata for web pages.
|
||||
type WebDetection_WebPage struct {
|
||||
// The result web page URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// (Deprecated) Overall relevancy score for the web page.
|
||||
Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
|
||||
// Title for the web page, may contain HTML markups.
|
||||
PageTitle string `protobuf:"bytes,3,opt,name=page_title,json=pageTitle,proto3" json:"page_title,omitempty"`
|
||||
// Fully matching images on the page.
|
||||
// Can include resized copies of the query image.
|
||||
FullMatchingImages []*WebDetection_WebImage `protobuf:"bytes,4,rep,name=full_matching_images,json=fullMatchingImages,proto3" json:"full_matching_images,omitempty"`
|
||||
// Partial matching images on the page.
|
||||
// Those images are similar enough to share some key-point features. For
|
||||
// example an original image will likely have partial matching for its
|
||||
// crops.
|
||||
PartialMatchingImages []*WebDetection_WebImage `protobuf:"bytes,5,rep,name=partial_matching_images,json=partialMatchingImages,proto3" json:"partial_matching_images,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) Reset() { *m = WebDetection_WebPage{} }
|
||||
func (m *WebDetection_WebPage) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebPage) ProtoMessage() {}
|
||||
func (*WebDetection_WebPage) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 2}
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebPage) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebPage.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebPage.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebPage) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebPage.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebPage proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebPage) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) GetScore() float32 {
|
||||
if m != nil {
|
||||
return m.Score
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) GetPageTitle() string {
|
||||
if m != nil {
|
||||
return m.PageTitle
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) GetFullMatchingImages() []*WebDetection_WebImage {
|
||||
if m != nil {
|
||||
return m.FullMatchingImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebImage {
|
||||
if m != nil {
|
||||
return m.PartialMatchingImages
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Label to provide extra metadata for the web detection.
|
||||
type WebDetection_WebLabel struct {
|
||||
// Label for extra metadata.
|
||||
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
|
||||
// The BCP-47 language code for `label`, such as "en-US" or "sr-Latn".
|
||||
// For more information, see
|
||||
// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
||||
LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebLabel) Reset() { *m = WebDetection_WebLabel{} }
|
||||
func (m *WebDetection_WebLabel) String() string { return proto.CompactTextString(m) }
|
||||
func (*WebDetection_WebLabel) ProtoMessage() {}
|
||||
func (*WebDetection_WebLabel) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_web_detection_48b1ad42bf628bbe, []int{0, 3}
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Unmarshal(m, b)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *WebDetection_WebLabel) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_WebDetection_WebLabel.Merge(dst, src)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_Size() int {
|
||||
return xxx_messageInfo_WebDetection_WebLabel.Size(m)
|
||||
}
|
||||
func (m *WebDetection_WebLabel) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_WebDetection_WebLabel.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_WebDetection_WebLabel proto.InternalMessageInfo
|
||||
|
||||
func (m *WebDetection_WebLabel) GetLabel() string {
|
||||
if m != nil {
|
||||
return m.Label
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *WebDetection_WebLabel) GetLanguageCode() string {
|
||||
if m != nil {
|
||||
return m.LanguageCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*WebDetection)(nil), "google.cloud.vision.v1p3beta1.WebDetection")
|
||||
proto.RegisterType((*WebDetection_WebEntity)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebEntity")
|
||||
proto.RegisterType((*WebDetection_WebImage)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebImage")
|
||||
proto.RegisterType((*WebDetection_WebPage)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebPage")
|
||||
proto.RegisterType((*WebDetection_WebLabel)(nil), "google.cloud.vision.v1p3beta1.WebDetection.WebLabel")
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/cloud/vision/v1p3beta1/web_detection.proto", fileDescriptor_web_detection_48b1ad42bf628bbe)
|
||||
}
|
||||
|
||||
var fileDescriptor_web_detection_48b1ad42bf628bbe = []byte{
|
||||
// 511 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0x4f, 0x6f, 0xd3, 0x30,
|
||||
0x18, 0xc6, 0x95, 0x76, 0x1b, 0x8d, 0x5b, 0x04, 0xb3, 0x86, 0x16, 0x05, 0x26, 0x15, 0xb8, 0xf4,
|
||||
0x94, 0xa8, 0x2b, 0x9c, 0xb8, 0x6d, 0x4c, 0x68, 0x12, 0x48, 0x55, 0x40, 0x1a, 0xe2, 0x92, 0x39,
|
||||
0x89, 0x97, 0xbe, 0x92, 0x1b, 0x47, 0xb1, 0xd3, 0xaa, 0x37, 0x4e, 0x7c, 0x14, 0x3e, 0x23, 0x47,
|
||||
0xf4, 0xda, 0xee, 0x54, 0x51, 0x36, 0x31, 0x86, 0xb8, 0xf9, 0x7d, 0xac, 0xe7, 0xf9, 0xd9, 0xaf,
|
||||
0xff, 0x90, 0x71, 0x29, 0x65, 0x29, 0x78, 0x9c, 0x0b, 0xd9, 0x16, 0xf1, 0x02, 0x14, 0xc8, 0x2a,
|
||||
0x5e, 0x8c, 0xeb, 0x49, 0xc6, 0x35, 0x1b, 0xc7, 0x4b, 0x9e, 0xa5, 0x05, 0xd7, 0x3c, 0xd7, 0x20,
|
||||
0xab, 0xa8, 0x6e, 0xa4, 0x96, 0xf4, 0xc8, 0x5a, 0x22, 0x63, 0x89, 0xac, 0x25, 0xba, 0xb6, 0x84,
|
||||
0xcf, 0x5c, 0x22, 0xab, 0x21, 0x66, 0x55, 0x25, 0x35, 0x43, 0xaf, 0xb2, 0xe6, 0x17, 0xdf, 0x7c,
|
||||
0x32, 0xb8, 0xe0, 0xd9, 0xdb, 0x75, 0x26, 0xfd, 0x4c, 0x06, 0x08, 0xe1, 0x95, 0x06, 0x0d, 0x5c,
|
||||
0x05, 0xde, 0xb0, 0x3b, 0xea, 0x1f, 0xbf, 0x8e, 0x6e, 0x85, 0x44, 0x9b, 0x11, 0x58, 0x9c, 0xa1,
|
||||
0x7d, 0x95, 0xf4, 0x97, 0x6e, 0x08, 0x5c, 0xd1, 0x2b, 0x72, 0x70, 0xd5, 0x0a, 0x91, 0xce, 0x99,
|
||||
0xce, 0x67, 0x50, 0x95, 0x29, 0xcc, 0x59, 0xc9, 0x55, 0xd0, 0x31, 0x84, 0x57, 0x77, 0x24, 0x9c,
|
||||
0xa3, 0x39, 0xa1, 0x98, 0xf8, 0xc1, 0x05, 0x1a, 0x49, 0x51, 0x41, 0x0e, 0x6b, 0xd6, 0x68, 0x60,
|
||||
0xdb, 0xa8, 0xee, 0x3d, 0x50, 0x4f, 0x5c, 0xe8, 0x2f, 0xb4, 0x9a, 0x84, 0x35, 0x0e, 0xd2, 0x25,
|
||||
0xe8, 0xd9, 0x16, 0x70, 0xc7, 0x00, 0x27, 0x77, 0x04, 0x4e, 0x91, 0x77, 0x68, 0x62, 0x2f, 0x40,
|
||||
0xcf, 0xb6, 0xf7, 0xb7, 0x00, 0xd5, 0x32, 0x21, 0x56, 0xa9, 0x82, 0x39, 0x08, 0xd6, 0xac, 0x71,
|
||||
0x7b, 0xf7, 0xd9, 0xdf, 0x3a, 0xf4, 0xa3, 0xcd, 0x74, 0xb4, 0x4b, 0xb2, 0x9f, 0x71, 0xa5, 0xd3,
|
||||
0xb2, 0xe5, 0x4a, 0xa5, 0x82, 0x65, 0x5c, 0xa8, 0xa0, 0xf7, 0x57, 0x9c, 0xf7, 0x68, 0x4e, 0x1e,
|
||||
0x61, 0xdc, 0x3b, 0x4c, 0x33, 0xb5, 0x0a, 0x2f, 0x89, 0x7f, 0x7d, 0x63, 0xe8, 0x53, 0xe2, 0x9b,
|
||||
0xab, 0xb7, 0x4a, 0xa1, 0x08, 0xbc, 0xa1, 0x37, 0xf2, 0x93, 0x9e, 0x15, 0xce, 0x0b, 0x7a, 0x40,
|
||||
0x76, 0x55, 0x2e, 0x1b, 0x1e, 0x74, 0x86, 0xde, 0xa8, 0x93, 0xd8, 0x82, 0x0e, 0x49, 0xbf, 0xe0,
|
||||
0x2a, 0x6f, 0xa0, 0x46, 0x50, 0xd0, 0x35, 0xa6, 0x4d, 0x29, 0x3c, 0x26, 0xbd, 0xf5, 0x36, 0xe9,
|
||||
0x63, 0xd2, 0x6d, 0x1b, 0xe1, 0xa2, 0x71, 0xf8, 0xfb, 0xd4, 0xf0, 0x7b, 0x87, 0x3c, 0x70, 0x47,
|
||||
0xf1, 0xa7, 0x1e, 0x7a, 0x44, 0x08, 0x1e, 0x5a, 0xaa, 0x41, 0x0b, 0xee, 0x16, 0xe2, 0xa3, 0xf2,
|
||||
0x09, 0x85, 0x1b, 0x1f, 0xc0, 0xce, 0xff, 0x7b, 0x00, 0xbb, 0xff, 0xfc, 0x01, 0x84, 0x67, 0xa6,
|
||||
0xb9, 0xe6, 0x2c, 0xb1, 0x2d, 0xe6, 0x86, 0xb8, 0x56, 0xd9, 0x82, 0xbe, 0x24, 0x0f, 0x05, 0xab,
|
||||
0xca, 0x16, 0x5b, 0x93, 0xcb, 0xc2, 0x36, 0xcd, 0x4f, 0x06, 0x6b, 0xf1, 0x54, 0x16, 0xfc, 0xe4,
|
||||
0xab, 0x47, 0x9e, 0xe7, 0x72, 0x7e, 0xfb, 0xca, 0x4e, 0xf6, 0x37, 0x97, 0x36, 0xc5, 0x1f, 0x6c,
|
||||
0xea, 0x7d, 0x39, 0x75, 0x9e, 0x52, 0x62, 0x62, 0x24, 0x9b, 0x32, 0x2e, 0x79, 0x65, 0xfe, 0xb7,
|
||||
0xd8, 0x4e, 0xb1, 0x1a, 0xd4, 0x0d, 0x5f, 0xea, 0x1b, 0x2b, 0xfc, 0xf0, 0xbc, 0x6c, 0xcf, 0x58,
|
||||
0x26, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe5, 0xb6, 0x81, 0x34, 0x84, 0x05, 0x00, 0x00,
|
||||
}
|
Reference in New Issue
Block a user