vision

package
v0.0.0-...-0e82294 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BatchOperationMetadata_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "PROCESSING",
	2: "SUCCESSFUL",
	3: "FAILED",
	4: "CANCELLED",
}
View Source
var BatchOperationMetadata_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"PROCESSING":        1,
	"SUCCESSFUL":        2,
	"FAILED":            3,
	"CANCELLED":         4,
}
View Source
var Block_BlockType_name = map[int32]string{
	0: "UNKNOWN",
	1: "TEXT",
	2: "TABLE",
	3: "PICTURE",
	4: "RULER",
	5: "BARCODE",
}
View Source
var Block_BlockType_value = map[string]int32{
	"UNKNOWN": 0,
	"TEXT":    1,
	"TABLE":   2,
	"PICTURE": 3,
	"RULER":   4,
	"BARCODE": 5,
}
View Source
var FaceAnnotation_Landmark_Type_name = map[int32]string{
	0:  "UNKNOWN_LANDMARK",
	1:  "LEFT_EYE",
	2:  "RIGHT_EYE",
	3:  "LEFT_OF_LEFT_EYEBROW",
	4:  "RIGHT_OF_LEFT_EYEBROW",
	5:  "LEFT_OF_RIGHT_EYEBROW",
	6:  "RIGHT_OF_RIGHT_EYEBROW",
	7:  "MIDPOINT_BETWEEN_EYES",
	8:  "NOSE_TIP",
	9:  "UPPER_LIP",
	10: "LOWER_LIP",
	11: "MOUTH_LEFT",
	12: "MOUTH_RIGHT",
	13: "MOUTH_CENTER",
	14: "NOSE_BOTTOM_RIGHT",
	15: "NOSE_BOTTOM_LEFT",
	16: "NOSE_BOTTOM_CENTER",
	17: "LEFT_EYE_TOP_BOUNDARY",
	18: "LEFT_EYE_RIGHT_CORNER",
	19: "LEFT_EYE_BOTTOM_BOUNDARY",
	20: "LEFT_EYE_LEFT_CORNER",
	21: "RIGHT_EYE_TOP_BOUNDARY",
	22: "RIGHT_EYE_RIGHT_CORNER",
	23: "RIGHT_EYE_BOTTOM_BOUNDARY",
	24: "RIGHT_EYE_LEFT_CORNER",
	25: "LEFT_EYEBROW_UPPER_MIDPOINT",
	26: "RIGHT_EYEBROW_UPPER_MIDPOINT",
	27: "LEFT_EAR_TRAGION",
	28: "RIGHT_EAR_TRAGION",
	29: "LEFT_EYE_PUPIL",
	30: "RIGHT_EYE_PUPIL",
	31: "FOREHEAD_GLABELLA",
	32: "CHIN_GNATHION",
	33: "CHIN_LEFT_GONION",
	34: "CHIN_RIGHT_GONION",
}
View Source
var FaceAnnotation_Landmark_Type_value = map[string]int32{
	"UNKNOWN_LANDMARK":             0,
	"LEFT_EYE":                     1,
	"RIGHT_EYE":                    2,
	"LEFT_OF_LEFT_EYEBROW":         3,
	"RIGHT_OF_LEFT_EYEBROW":        4,
	"LEFT_OF_RIGHT_EYEBROW":        5,
	"RIGHT_OF_RIGHT_EYEBROW":       6,
	"MIDPOINT_BETWEEN_EYES":        7,
	"NOSE_TIP":                     8,
	"UPPER_LIP":                    9,
	"LOWER_LIP":                    10,
	"MOUTH_LEFT":                   11,
	"MOUTH_RIGHT":                  12,
	"MOUTH_CENTER":                 13,
	"NOSE_BOTTOM_RIGHT":            14,
	"NOSE_BOTTOM_LEFT":             15,
	"NOSE_BOTTOM_CENTER":           16,
	"LEFT_EYE_TOP_BOUNDARY":        17,
	"LEFT_EYE_RIGHT_CORNER":        18,
	"LEFT_EYE_BOTTOM_BOUNDARY":     19,
	"LEFT_EYE_LEFT_CORNER":         20,
	"RIGHT_EYE_TOP_BOUNDARY":       21,
	"RIGHT_EYE_RIGHT_CORNER":       22,
	"RIGHT_EYE_BOTTOM_BOUNDARY":    23,
	"RIGHT_EYE_LEFT_CORNER":        24,
	"LEFT_EYEBROW_UPPER_MIDPOINT":  25,
	"RIGHT_EYEBROW_UPPER_MIDPOINT": 26,
	"LEFT_EAR_TRAGION":             27,
	"RIGHT_EAR_TRAGION":            28,
	"LEFT_EYE_PUPIL":               29,
	"RIGHT_EYE_PUPIL":              30,
	"FOREHEAD_GLABELLA":            31,
	"CHIN_GNATHION":                32,
	"CHIN_LEFT_GONION":             33,
	"CHIN_RIGHT_GONION":            34,
}
View Source
var Feature_Type_name = map[int32]string{
	0:  "TYPE_UNSPECIFIED",
	1:  "FACE_DETECTION",
	2:  "LANDMARK_DETECTION",
	3:  "LOGO_DETECTION",
	4:  "LABEL_DETECTION",
	5:  "TEXT_DETECTION",
	11: "DOCUMENT_TEXT_DETECTION",
	6:  "SAFE_SEARCH_DETECTION",
	7:  "IMAGE_PROPERTIES",
	9:  "CROP_HINTS",
	10: "WEB_DETECTION",
	12: "PRODUCT_SEARCH",
	19: "OBJECT_LOCALIZATION",
}
View Source
var Feature_Type_value = map[string]int32{
	"TYPE_UNSPECIFIED":        0,
	"FACE_DETECTION":          1,
	"LANDMARK_DETECTION":      2,
	"LOGO_DETECTION":          3,
	"LABEL_DETECTION":         4,
	"TEXT_DETECTION":          5,
	"DOCUMENT_TEXT_DETECTION": 11,
	"SAFE_SEARCH_DETECTION":   6,
	"IMAGE_PROPERTIES":        7,
	"CROP_HINTS":              9,
	"WEB_DETECTION":           10,
	"PRODUCT_SEARCH":          12,
	"OBJECT_LOCALIZATION":     19,
}
View Source
var Likelihood_name = map[int32]string{
	0: "UNKNOWN",
	1: "VERY_UNLIKELY",
	2: "UNLIKELY",
	3: "POSSIBLE",
	4: "LIKELY",
	5: "VERY_LIKELY",
}
View Source
var Likelihood_value = map[string]int32{
	"UNKNOWN":       0,
	"VERY_UNLIKELY": 1,
	"UNLIKELY":      2,
	"POSSIBLE":      3,
	"LIKELY":        4,
	"VERY_LIKELY":   5,
}
View Source
var OperationMetadata_State_name = map[int32]string{
	0: "STATE_UNSPECIFIED",
	1: "CREATED",
	2: "RUNNING",
	3: "DONE",
	4: "CANCELLED",
}
View Source
var OperationMetadata_State_value = map[string]int32{
	"STATE_UNSPECIFIED": 0,
	"CREATED":           1,
	"RUNNING":           2,
	"DONE":              3,
	"CANCELLED":         4,
}
View Source
var ProductSearchCategory_name = map[int32]string{
	0: "PRODUCT_SEARCH_CATEGORY_UNSPECIFIED",
	1: "SHOES",
	2: "BAGS",
}
View Source
var ProductSearchCategory_value = map[string]int32{
	"PRODUCT_SEARCH_CATEGORY_UNSPECIFIED": 0,
	"SHOES":                               1,
	"BAGS":                                2,
}
View Source
var ProductSearchResultsView_name = map[int32]string{
	0: "BASIC",
	1: "FULL",
}
View Source
var ProductSearchResultsView_value = map[string]int32{
	"BASIC": 0,
	"FULL":  1,
}
View Source
var TextAnnotation_DetectedBreak_BreakType_name = map[int32]string{
	0: "UNKNOWN",
	1: "SPACE",
	2: "SURE_SPACE",
	3: "EOL_SURE_SPACE",
	4: "HYPHEN",
	5: "LINE_BREAK",
}
View Source
var TextAnnotation_DetectedBreak_BreakType_value = map[string]int32{
	"UNKNOWN":        0,
	"SPACE":          1,
	"SURE_SPACE":     2,
	"EOL_SURE_SPACE": 3,
	"HYPHEN":         4,
	"LINE_BREAK":     5,
}

Functions

func RegisterImageAnnotatorServer

func RegisterImageAnnotatorServer(s *grpc.Server, srv ImageAnnotatorServer)

func RegisterProductSearchServer

func RegisterProductSearchServer(s *grpc.Server, srv ProductSearchServer)

Types

type AddProductToProductSetRequest

type AddProductToProductSetRequest struct {
	// The resource name for the ProductSet to modify.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The resource name for the Product to be added to this ProductSet.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
	Product              string   `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `AddProductToProductSet` method.

func (*AddProductToProductSetRequest) Descriptor

func (*AddProductToProductSetRequest) Descriptor() ([]byte, []int)

func (*AddProductToProductSetRequest) GetName

func (*AddProductToProductSetRequest) GetProduct

func (m *AddProductToProductSetRequest) GetProduct() string

func (*AddProductToProductSetRequest) ProtoMessage

func (*AddProductToProductSetRequest) ProtoMessage()

func (*AddProductToProductSetRequest) Reset

func (m *AddProductToProductSetRequest) Reset()

func (*AddProductToProductSetRequest) String

func (*AddProductToProductSetRequest) XXX_DiscardUnknown

func (m *AddProductToProductSetRequest) XXX_DiscardUnknown()

func (*AddProductToProductSetRequest) XXX_Marshal

func (m *AddProductToProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AddProductToProductSetRequest) XXX_Merge

func (m *AddProductToProductSetRequest) XXX_Merge(src proto.Message)

func (*AddProductToProductSetRequest) XXX_Size

func (m *AddProductToProductSetRequest) XXX_Size() int

func (*AddProductToProductSetRequest) XXX_Unmarshal

func (m *AddProductToProductSetRequest) XXX_Unmarshal(b []byte) error

type AnnotateFileResponse

type AnnotateFileResponse struct {
	// Information about the file for which this response is generated.
	InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// Individual responses to images found within the file.
	Responses            []*AnnotateImageResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.

func (*AnnotateFileResponse) Descriptor

func (*AnnotateFileResponse) Descriptor() ([]byte, []int)

func (*AnnotateFileResponse) GetInputConfig

func (m *AnnotateFileResponse) GetInputConfig() *InputConfig

func (*AnnotateFileResponse) GetResponses

func (m *AnnotateFileResponse) GetResponses() []*AnnotateImageResponse

func (*AnnotateFileResponse) ProtoMessage

func (*AnnotateFileResponse) ProtoMessage()

func (*AnnotateFileResponse) Reset

func (m *AnnotateFileResponse) Reset()

func (*AnnotateFileResponse) String

func (m *AnnotateFileResponse) String() string

func (*AnnotateFileResponse) XXX_DiscardUnknown

func (m *AnnotateFileResponse) XXX_DiscardUnknown()

func (*AnnotateFileResponse) XXX_Marshal

func (m *AnnotateFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnnotateFileResponse) XXX_Merge

func (m *AnnotateFileResponse) XXX_Merge(src proto.Message)

func (*AnnotateFileResponse) XXX_Size

func (m *AnnotateFileResponse) XXX_Size() int

func (*AnnotateFileResponse) XXX_Unmarshal

func (m *AnnotateFileResponse) XXX_Unmarshal(b []byte) error

type AnnotateImageRequest

type AnnotateImageRequest struct {
	// The image to be processed.
	Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// Requested features.
	Features []*Feature `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
	// Additional context that may accompany the image.
	ImageContext         *ImageContext `protobuf:"bytes,3,opt,name=image_context,json=imageContext,proto3" json:"image_context,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features.

func (*AnnotateImageRequest) Descriptor

func (*AnnotateImageRequest) Descriptor() ([]byte, []int)

func (*AnnotateImageRequest) GetFeatures

func (m *AnnotateImageRequest) GetFeatures() []*Feature

func (*AnnotateImageRequest) GetImage

func (m *AnnotateImageRequest) GetImage() *Image

func (*AnnotateImageRequest) GetImageContext

func (m *AnnotateImageRequest) GetImageContext() *ImageContext

func (*AnnotateImageRequest) ProtoMessage

func (*AnnotateImageRequest) ProtoMessage()

func (*AnnotateImageRequest) Reset

func (m *AnnotateImageRequest) Reset()

func (*AnnotateImageRequest) String

func (m *AnnotateImageRequest) String() string

func (*AnnotateImageRequest) XXX_DiscardUnknown

func (m *AnnotateImageRequest) XXX_DiscardUnknown()

func (*AnnotateImageRequest) XXX_Marshal

func (m *AnnotateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnnotateImageRequest) XXX_Merge

func (m *AnnotateImageRequest) XXX_Merge(src proto.Message)

func (*AnnotateImageRequest) XXX_Size

func (m *AnnotateImageRequest) XXX_Size() int

func (*AnnotateImageRequest) XXX_Unmarshal

func (m *AnnotateImageRequest) XXX_Unmarshal(b []byte) error

type AnnotateImageResponse

type AnnotateImageResponse struct {
	// If present, face detection has completed successfully.
	FaceAnnotations []*FaceAnnotation `protobuf:"bytes,1,rep,name=face_annotations,json=faceAnnotations,proto3" json:"face_annotations,omitempty"`
	// If present, landmark detection has completed successfully.
	LandmarkAnnotations []*EntityAnnotation `protobuf:"bytes,2,rep,name=landmark_annotations,json=landmarkAnnotations,proto3" json:"landmark_annotations,omitempty"`
	// If present, logo detection has completed successfully.
	LogoAnnotations []*EntityAnnotation `protobuf:"bytes,3,rep,name=logo_annotations,json=logoAnnotations,proto3" json:"logo_annotations,omitempty"`
	// If present, label detection has completed successfully.
	LabelAnnotations []*EntityAnnotation `protobuf:"bytes,4,rep,name=label_annotations,json=labelAnnotations,proto3" json:"label_annotations,omitempty"`
	// If present, localized object detection has completed successfully.
	// This will be sorted descending by confidence score.
	LocalizedObjectAnnotations []*LocalizedObjectAnnotation `` /* 142-byte string literal not displayed */
	// If present, text (OCR) detection has completed successfully.
	TextAnnotations []*EntityAnnotation `protobuf:"bytes,5,rep,name=text_annotations,json=textAnnotations,proto3" json:"text_annotations,omitempty"`
	// If present, text (OCR) detection or document (OCR) text detection has
	// completed successfully.
	// This annotation provides the structural hierarchy for the OCR detected
	// text.
	FullTextAnnotation *TextAnnotation `protobuf:"bytes,12,opt,name=full_text_annotation,json=fullTextAnnotation,proto3" json:"full_text_annotation,omitempty"`
	// If present, safe-search annotation has completed successfully.
	SafeSearchAnnotation *SafeSearchAnnotation `protobuf:"bytes,6,opt,name=safe_search_annotation,json=safeSearchAnnotation,proto3" json:"safe_search_annotation,omitempty"`
	// If present, image properties were extracted successfully.
	ImagePropertiesAnnotation *ImageProperties `` /* 138-byte string literal not displayed */
	// If present, crop hints have completed successfully.
	CropHintsAnnotation *CropHintsAnnotation `protobuf:"bytes,11,opt,name=crop_hints_annotation,json=cropHintsAnnotation,proto3" json:"crop_hints_annotation,omitempty"`
	// If present, web detection has completed successfully.
	WebDetection *WebDetection `protobuf:"bytes,13,opt,name=web_detection,json=webDetection,proto3" json:"web_detection,omitempty"`
	// If present, product search has completed successfully.
	ProductSearchResults *ProductSearchResults `protobuf:"bytes,14,opt,name=product_search_results,json=productSearchResults,proto3" json:"product_search_results,omitempty"`
	// If set, represents the error message for the operation.
	// Note that filled-in image annotations are guaranteed to be
	// correct, even when `error` is set.
	Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"`
	// If present, contextual information is needed to understand where this image
	// comes from.
	Context              *ImageAnnotationContext `protobuf:"bytes,21,opt,name=context,proto3" json:"context,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Response to an image annotation request.

func (*AnnotateImageResponse) Descriptor

func (*AnnotateImageResponse) Descriptor() ([]byte, []int)

func (*AnnotateImageResponse) GetContext

func (*AnnotateImageResponse) GetCropHintsAnnotation

func (m *AnnotateImageResponse) GetCropHintsAnnotation() *CropHintsAnnotation

func (*AnnotateImageResponse) GetError

func (m *AnnotateImageResponse) GetError() *status.Status

func (*AnnotateImageResponse) GetFaceAnnotations

func (m *AnnotateImageResponse) GetFaceAnnotations() []*FaceAnnotation

func (*AnnotateImageResponse) GetFullTextAnnotation

func (m *AnnotateImageResponse) GetFullTextAnnotation() *TextAnnotation

func (*AnnotateImageResponse) GetImagePropertiesAnnotation

func (m *AnnotateImageResponse) GetImagePropertiesAnnotation() *ImageProperties

func (*AnnotateImageResponse) GetLabelAnnotations

func (m *AnnotateImageResponse) GetLabelAnnotations() []*EntityAnnotation

func (*AnnotateImageResponse) GetLandmarkAnnotations

func (m *AnnotateImageResponse) GetLandmarkAnnotations() []*EntityAnnotation

func (*AnnotateImageResponse) GetLocalizedObjectAnnotations

func (m *AnnotateImageResponse) GetLocalizedObjectAnnotations() []*LocalizedObjectAnnotation

func (*AnnotateImageResponse) GetLogoAnnotations

func (m *AnnotateImageResponse) GetLogoAnnotations() []*EntityAnnotation

func (*AnnotateImageResponse) GetProductSearchResults

func (m *AnnotateImageResponse) GetProductSearchResults() *ProductSearchResults

func (*AnnotateImageResponse) GetSafeSearchAnnotation

func (m *AnnotateImageResponse) GetSafeSearchAnnotation() *SafeSearchAnnotation

func (*AnnotateImageResponse) GetTextAnnotations

func (m *AnnotateImageResponse) GetTextAnnotations() []*EntityAnnotation

func (*AnnotateImageResponse) GetWebDetection

func (m *AnnotateImageResponse) GetWebDetection() *WebDetection

func (*AnnotateImageResponse) ProtoMessage

func (*AnnotateImageResponse) ProtoMessage()

func (*AnnotateImageResponse) Reset

func (m *AnnotateImageResponse) Reset()

func (*AnnotateImageResponse) String

func (m *AnnotateImageResponse) String() string

func (*AnnotateImageResponse) XXX_DiscardUnknown

func (m *AnnotateImageResponse) XXX_DiscardUnknown()

func (*AnnotateImageResponse) XXX_Marshal

func (m *AnnotateImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AnnotateImageResponse) XXX_Merge

func (m *AnnotateImageResponse) XXX_Merge(src proto.Message)

func (*AnnotateImageResponse) XXX_Size

func (m *AnnotateImageResponse) XXX_Size() int

func (*AnnotateImageResponse) XXX_Unmarshal

func (m *AnnotateImageResponse) XXX_Unmarshal(b []byte) error

type AsyncAnnotateFileRequest

type AsyncAnnotateFileRequest struct {
	// Required. Information about the input file.
	InputConfig *InputConfig `protobuf:"bytes,1,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// Required. Requested features.
	Features []*Feature `protobuf:"bytes,2,rep,name=features,proto3" json:"features,omitempty"`
	// Additional context that may accompany the image(s) in the file.
	ImageContext *ImageContext `protobuf:"bytes,3,opt,name=image_context,json=imageContext,proto3" json:"image_context,omitempty"`
	// Required. The desired output location and metadata (e.g. format).
	OutputConfig         *OutputConfig `protobuf:"bytes,4,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

An offline file annotation request.

func (*AsyncAnnotateFileRequest) Descriptor

func (*AsyncAnnotateFileRequest) Descriptor() ([]byte, []int)

func (*AsyncAnnotateFileRequest) GetFeatures

func (m *AsyncAnnotateFileRequest) GetFeatures() []*Feature

func (*AsyncAnnotateFileRequest) GetImageContext

func (m *AsyncAnnotateFileRequest) GetImageContext() *ImageContext

func (*AsyncAnnotateFileRequest) GetInputConfig

func (m *AsyncAnnotateFileRequest) GetInputConfig() *InputConfig

func (*AsyncAnnotateFileRequest) GetOutputConfig

func (m *AsyncAnnotateFileRequest) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileRequest) ProtoMessage

func (*AsyncAnnotateFileRequest) ProtoMessage()

func (*AsyncAnnotateFileRequest) Reset

func (m *AsyncAnnotateFileRequest) Reset()

func (*AsyncAnnotateFileRequest) String

func (m *AsyncAnnotateFileRequest) String() string

func (*AsyncAnnotateFileRequest) XXX_DiscardUnknown

func (m *AsyncAnnotateFileRequest) XXX_DiscardUnknown()

func (*AsyncAnnotateFileRequest) XXX_Marshal

func (m *AsyncAnnotateFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsyncAnnotateFileRequest) XXX_Merge

func (m *AsyncAnnotateFileRequest) XXX_Merge(src proto.Message)

func (*AsyncAnnotateFileRequest) XXX_Size

func (m *AsyncAnnotateFileRequest) XXX_Size() int

func (*AsyncAnnotateFileRequest) XXX_Unmarshal

func (m *AsyncAnnotateFileRequest) XXX_Unmarshal(b []byte) error

type AsyncAnnotateFileResponse

type AsyncAnnotateFileResponse struct {
	// The output location and metadata from AsyncAnnotateFileRequest.
	OutputConfig         *OutputConfig `protobuf:"bytes,1,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

The response for a single offline file annotation request.

func (*AsyncAnnotateFileResponse) Descriptor

func (*AsyncAnnotateFileResponse) Descriptor() ([]byte, []int)

func (*AsyncAnnotateFileResponse) GetOutputConfig

func (m *AsyncAnnotateFileResponse) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileResponse) ProtoMessage

func (*AsyncAnnotateFileResponse) ProtoMessage()

func (*AsyncAnnotateFileResponse) Reset

func (m *AsyncAnnotateFileResponse) Reset()

func (*AsyncAnnotateFileResponse) String

func (m *AsyncAnnotateFileResponse) String() string

func (*AsyncAnnotateFileResponse) XXX_DiscardUnknown

func (m *AsyncAnnotateFileResponse) XXX_DiscardUnknown()

func (*AsyncAnnotateFileResponse) XXX_Marshal

func (m *AsyncAnnotateFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsyncAnnotateFileResponse) XXX_Merge

func (m *AsyncAnnotateFileResponse) XXX_Merge(src proto.Message)

func (*AsyncAnnotateFileResponse) XXX_Size

func (m *AsyncAnnotateFileResponse) XXX_Size() int

func (*AsyncAnnotateFileResponse) XXX_Unmarshal

func (m *AsyncAnnotateFileResponse) XXX_Unmarshal(b []byte) error

type AsyncBatchAnnotateFilesRequest

type AsyncBatchAnnotateFilesRequest struct {
	// Individual async file annotation requests for this batch.
	Requests             []*AsyncAnnotateFileRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
	XXX_unrecognized     []byte                      `json:"-"`
	XXX_sizecache        int32                       `json:"-"`
}

Multiple async file annotation requests are batched into a single service call.

func (*AsyncBatchAnnotateFilesRequest) Descriptor

func (*AsyncBatchAnnotateFilesRequest) Descriptor() ([]byte, []int)

func (*AsyncBatchAnnotateFilesRequest) GetRequests

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage()

func (*AsyncBatchAnnotateFilesRequest) Reset

func (m *AsyncBatchAnnotateFilesRequest) Reset()

func (*AsyncBatchAnnotateFilesRequest) String

func (*AsyncBatchAnnotateFilesRequest) XXX_DiscardUnknown

func (m *AsyncBatchAnnotateFilesRequest) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateFilesRequest) XXX_Marshal

func (m *AsyncBatchAnnotateFilesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsyncBatchAnnotateFilesRequest) XXX_Merge

func (m *AsyncBatchAnnotateFilesRequest) XXX_Merge(src proto.Message)

func (*AsyncBatchAnnotateFilesRequest) XXX_Size

func (m *AsyncBatchAnnotateFilesRequest) XXX_Size() int

func (*AsyncBatchAnnotateFilesRequest) XXX_Unmarshal

func (m *AsyncBatchAnnotateFilesRequest) XXX_Unmarshal(b []byte) error

type AsyncBatchAnnotateFilesResponse

type AsyncBatchAnnotateFilesResponse struct {
	// The list of file annotation responses, one for each request in
	// AsyncBatchAnnotateFilesRequest.
	Responses            []*AsyncAnnotateFileResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                     `json:"-"`
	XXX_unrecognized     []byte                       `json:"-"`
	XXX_sizecache        int32                        `json:"-"`
}

Response to an async batch file annotation request.

func (*AsyncBatchAnnotateFilesResponse) Descriptor

func (*AsyncBatchAnnotateFilesResponse) Descriptor() ([]byte, []int)

func (*AsyncBatchAnnotateFilesResponse) GetResponses

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage()

func (*AsyncBatchAnnotateFilesResponse) Reset

func (*AsyncBatchAnnotateFilesResponse) String

func (*AsyncBatchAnnotateFilesResponse) XXX_DiscardUnknown

func (m *AsyncBatchAnnotateFilesResponse) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateFilesResponse) XXX_Marshal

func (m *AsyncBatchAnnotateFilesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsyncBatchAnnotateFilesResponse) XXX_Merge

func (m *AsyncBatchAnnotateFilesResponse) XXX_Merge(src proto.Message)

func (*AsyncBatchAnnotateFilesResponse) XXX_Size

func (m *AsyncBatchAnnotateFilesResponse) XXX_Size() int

func (*AsyncBatchAnnotateFilesResponse) XXX_Unmarshal

func (m *AsyncBatchAnnotateFilesResponse) XXX_Unmarshal(b []byte) error

type BatchAnnotateImagesRequest

type BatchAnnotateImagesRequest struct {
	// Individual image annotation requests for this batch.
	Requests             []*AnnotateImageRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

Multiple image annotation requests are batched into a single service call.

func (*BatchAnnotateImagesRequest) Descriptor

func (*BatchAnnotateImagesRequest) Descriptor() ([]byte, []int)

func (*BatchAnnotateImagesRequest) GetRequests

func (*BatchAnnotateImagesRequest) ProtoMessage

func (*BatchAnnotateImagesRequest) ProtoMessage()

func (*BatchAnnotateImagesRequest) Reset

func (m *BatchAnnotateImagesRequest) Reset()

func (*BatchAnnotateImagesRequest) String

func (m *BatchAnnotateImagesRequest) String() string

func (*BatchAnnotateImagesRequest) XXX_DiscardUnknown

func (m *BatchAnnotateImagesRequest) XXX_DiscardUnknown()

func (*BatchAnnotateImagesRequest) XXX_Marshal

func (m *BatchAnnotateImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchAnnotateImagesRequest) XXX_Merge

func (m *BatchAnnotateImagesRequest) XXX_Merge(src proto.Message)

func (*BatchAnnotateImagesRequest) XXX_Size

func (m *BatchAnnotateImagesRequest) XXX_Size() int

func (*BatchAnnotateImagesRequest) XXX_Unmarshal

func (m *BatchAnnotateImagesRequest) XXX_Unmarshal(b []byte) error

type BatchAnnotateImagesResponse

type BatchAnnotateImagesResponse struct {
	// Individual responses to image annotation requests within the batch.
	Responses            []*AnnotateImageResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
	XXX_unrecognized     []byte                   `json:"-"`
	XXX_sizecache        int32                    `json:"-"`
}

Response to a batch image annotation request.

func (*BatchAnnotateImagesResponse) Descriptor

func (*BatchAnnotateImagesResponse) Descriptor() ([]byte, []int)

func (*BatchAnnotateImagesResponse) GetResponses

func (*BatchAnnotateImagesResponse) ProtoMessage

func (*BatchAnnotateImagesResponse) ProtoMessage()

func (*BatchAnnotateImagesResponse) Reset

func (m *BatchAnnotateImagesResponse) Reset()

func (*BatchAnnotateImagesResponse) String

func (m *BatchAnnotateImagesResponse) String() string

func (*BatchAnnotateImagesResponse) XXX_DiscardUnknown

func (m *BatchAnnotateImagesResponse) XXX_DiscardUnknown()

func (*BatchAnnotateImagesResponse) XXX_Marshal

func (m *BatchAnnotateImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchAnnotateImagesResponse) XXX_Merge

func (m *BatchAnnotateImagesResponse) XXX_Merge(src proto.Message)

func (*BatchAnnotateImagesResponse) XXX_Size

func (m *BatchAnnotateImagesResponse) XXX_Size() int

func (*BatchAnnotateImagesResponse) XXX_Unmarshal

func (m *BatchAnnotateImagesResponse) XXX_Unmarshal(b []byte) error

type BatchOperationMetadata

type BatchOperationMetadata struct {
	// The current state of the batch operation.
	State BatchOperationMetadata_State `` /* 128-byte string literal not displayed */
	// The time when the batch request was submitted to the server.
	SubmitTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// The time when the batch request is finished and
	// [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
	EndTime              *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Metadata for the batch operations such as the current state.

This is included in the `metadata` field of the `Operation` returned by the `GetOperation` call of the `google::longrunning::Operations` service.

func (*BatchOperationMetadata) Descriptor

func (*BatchOperationMetadata) Descriptor() ([]byte, []int)

func (*BatchOperationMetadata) GetEndTime

func (m *BatchOperationMetadata) GetEndTime() *timestamp.Timestamp

func (*BatchOperationMetadata) GetState

func (*BatchOperationMetadata) GetSubmitTime

func (m *BatchOperationMetadata) GetSubmitTime() *timestamp.Timestamp

func (*BatchOperationMetadata) ProtoMessage

func (*BatchOperationMetadata) ProtoMessage()

func (*BatchOperationMetadata) Reset

func (m *BatchOperationMetadata) Reset()

func (*BatchOperationMetadata) String

func (m *BatchOperationMetadata) String() string

func (*BatchOperationMetadata) XXX_DiscardUnknown

func (m *BatchOperationMetadata) XXX_DiscardUnknown()

func (*BatchOperationMetadata) XXX_Marshal

func (m *BatchOperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchOperationMetadata) XXX_Merge

func (m *BatchOperationMetadata) XXX_Merge(src proto.Message)

func (*BatchOperationMetadata) XXX_Size

func (m *BatchOperationMetadata) XXX_Size() int

func (*BatchOperationMetadata) XXX_Unmarshal

func (m *BatchOperationMetadata) XXX_Unmarshal(b []byte) error

type BatchOperationMetadata_State

type BatchOperationMetadata_State int32

Enumerates the possible states that the batch request can be in.

const (
	// Invalid.
	BatchOperationMetadata_STATE_UNSPECIFIED BatchOperationMetadata_State = 0
	// Request is actively being processed.
	BatchOperationMetadata_PROCESSING BatchOperationMetadata_State = 1
	// The request is done and at least one item has been successfully
	// processed.
	BatchOperationMetadata_SUCCESSFUL BatchOperationMetadata_State = 2
	// The request is done and no item has been successfully processed.
	BatchOperationMetadata_FAILED BatchOperationMetadata_State = 3
	// The request is done after the longrunning.Operations.CancelOperation has
	// been called by the user.  Any records that were processed before the
	// cancel command are output as specified in the request.
	BatchOperationMetadata_CANCELLED BatchOperationMetadata_State = 4
)

func (BatchOperationMetadata_State) EnumDescriptor

func (BatchOperationMetadata_State) EnumDescriptor() ([]byte, []int)

func (BatchOperationMetadata_State) String

type Block

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 `` /* 140-byte string literal not displayed */
	// 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:"-"`
}

Logical element on the page.

func (*Block) Descriptor

func (*Block) Descriptor() ([]byte, []int)

func (*Block) GetBlockType

func (m *Block) GetBlockType() Block_BlockType

func (*Block) GetBoundingBox

func (m *Block) GetBoundingBox() *BoundingPoly

func (*Block) GetConfidence

func (m *Block) GetConfidence() float32

func (*Block) GetParagraphs

func (m *Block) GetParagraphs() []*Paragraph

func (*Block) GetProperty

func (m *Block) GetProperty() *TextAnnotation_TextProperty

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) Reset

func (m *Block) Reset()

func (*Block) String

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal

func (m *Block) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Block) XXX_Merge

func (m *Block) XXX_Merge(src proto.Message)

func (*Block) XXX_Size

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal

func (m *Block) XXX_Unmarshal(b []byte) error

type Block_BlockType

type Block_BlockType int32

Type of a block (text, image etc) as identified by OCR.

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
)

func (Block_BlockType) EnumDescriptor

func (Block_BlockType) EnumDescriptor() ([]byte, []int)

func (Block_BlockType) String

func (x Block_BlockType) String() string

type BoundingPoly

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:"-"`
}

A bounding polygon for the detected image annotation.

func (*BoundingPoly) Descriptor

func (*BoundingPoly) Descriptor() ([]byte, []int)

func (*BoundingPoly) GetNormalizedVertices

func (m *BoundingPoly) GetNormalizedVertices() []*NormalizedVertex

func (*BoundingPoly) GetVertices

func (m *BoundingPoly) GetVertices() []*Vertex

func (*BoundingPoly) ProtoMessage

func (*BoundingPoly) ProtoMessage()

func (*BoundingPoly) Reset

func (m *BoundingPoly) Reset()

func (*BoundingPoly) String

func (m *BoundingPoly) String() string

func (*BoundingPoly) XXX_DiscardUnknown

func (m *BoundingPoly) XXX_DiscardUnknown()

func (*BoundingPoly) XXX_Marshal

func (m *BoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BoundingPoly) XXX_Merge

func (m *BoundingPoly) XXX_Merge(src proto.Message)

func (*BoundingPoly) XXX_Size

func (m *BoundingPoly) XXX_Size() int

func (*BoundingPoly) XXX_Unmarshal

func (m *BoundingPoly) XXX_Unmarshal(b []byte) error

type ColorInfo

type ColorInfo struct {
	// RGB components of the color.
	Color *color.Color `protobuf:"bytes,1,opt,name=color,proto3" json:"color,omitempty"`
	// Image-specific score for this color. Value in range [0, 1].
	Score float32 `protobuf:"fixed32,2,opt,name=score,proto3" json:"score,omitempty"`
	// The fraction of pixels the color occupies in the image.
	// Value in range [0, 1].
	PixelFraction        float32  `protobuf:"fixed32,3,opt,name=pixel_fraction,json=pixelFraction,proto3" json:"pixel_fraction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.

func (*ColorInfo) Descriptor

func (*ColorInfo) Descriptor() ([]byte, []int)

func (*ColorInfo) GetColor

func (m *ColorInfo) GetColor() *color.Color

func (*ColorInfo) GetPixelFraction

func (m *ColorInfo) GetPixelFraction() float32

func (*ColorInfo) GetScore

func (m *ColorInfo) GetScore() float32

func (*ColorInfo) ProtoMessage

func (*ColorInfo) ProtoMessage()

func (*ColorInfo) Reset

func (m *ColorInfo) Reset()

func (*ColorInfo) String

func (m *ColorInfo) String() string

func (*ColorInfo) XXX_DiscardUnknown

func (m *ColorInfo) XXX_DiscardUnknown()

func (*ColorInfo) XXX_Marshal

func (m *ColorInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ColorInfo) XXX_Merge

func (m *ColorInfo) XXX_Merge(src proto.Message)

func (*ColorInfo) XXX_Size

func (m *ColorInfo) XXX_Size() int

func (*ColorInfo) XXX_Unmarshal

func (m *ColorInfo) XXX_Unmarshal(b []byte) error

type CreateProductRequest

type CreateProductRequest struct {
	// The project in which the Product should be created.
	//
	// Format is
	// `projects/PROJECT_ID/locations/LOC_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The product to create.
	Product *Product `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	// A user-supplied resource id for this Product. If set, the server will
	// attempt to use this value as the resource id. If it is already in use, an
	// error is returned with code ALREADY_EXISTS. Must be at most 128 characters
	// long. It cannot contain the character `/`.
	ProductId            string   `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `CreateProduct` method.

func (*CreateProductRequest) Descriptor

func (*CreateProductRequest) Descriptor() ([]byte, []int)

func (*CreateProductRequest) GetParent

func (m *CreateProductRequest) GetParent() string

func (*CreateProductRequest) GetProduct

func (m *CreateProductRequest) GetProduct() *Product

func (*CreateProductRequest) GetProductId

func (m *CreateProductRequest) GetProductId() string

func (*CreateProductRequest) ProtoMessage

func (*CreateProductRequest) ProtoMessage()

func (*CreateProductRequest) Reset

func (m *CreateProductRequest) Reset()

func (*CreateProductRequest) String

func (m *CreateProductRequest) String() string

func (*CreateProductRequest) XXX_DiscardUnknown

func (m *CreateProductRequest) XXX_DiscardUnknown()

func (*CreateProductRequest) XXX_Marshal

func (m *CreateProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateProductRequest) XXX_Merge

func (m *CreateProductRequest) XXX_Merge(src proto.Message)

func (*CreateProductRequest) XXX_Size

func (m *CreateProductRequest) XXX_Size() int

func (*CreateProductRequest) XXX_Unmarshal

func (m *CreateProductRequest) XXX_Unmarshal(b []byte) error

type CreateProductSetRequest

type CreateProductSetRequest struct {
	// The project in which the ProductSet should be created.
	//
	// Format is `projects/PROJECT_ID/locations/LOC_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The ProductSet to create.
	ProductSet *ProductSet `protobuf:"bytes,2,opt,name=product_set,json=productSet,proto3" json:"product_set,omitempty"`
	// A user-supplied resource id for this ProductSet. If set, the server will
	// attempt to use this value as the resource id. If it is already in use, an
	// error is returned with code ALREADY_EXISTS. Must be at most 128 characters
	// long. It cannot contain the character `/`.
	ProductSetId         string   `protobuf:"bytes,3,opt,name=product_set_id,json=productSetId,proto3" json:"product_set_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `CreateProductSet` method.

func (*CreateProductSetRequest) Descriptor

func (*CreateProductSetRequest) Descriptor() ([]byte, []int)

func (*CreateProductSetRequest) GetParent

func (m *CreateProductSetRequest) GetParent() string

func (*CreateProductSetRequest) GetProductSet

func (m *CreateProductSetRequest) GetProductSet() *ProductSet

func (*CreateProductSetRequest) GetProductSetId

func (m *CreateProductSetRequest) GetProductSetId() string

func (*CreateProductSetRequest) ProtoMessage

func (*CreateProductSetRequest) ProtoMessage()

func (*CreateProductSetRequest) Reset

func (m *CreateProductSetRequest) Reset()

func (*CreateProductSetRequest) String

func (m *CreateProductSetRequest) String() string

func (*CreateProductSetRequest) XXX_DiscardUnknown

func (m *CreateProductSetRequest) XXX_DiscardUnknown()

func (*CreateProductSetRequest) XXX_Marshal

func (m *CreateProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateProductSetRequest) XXX_Merge

func (m *CreateProductSetRequest) XXX_Merge(src proto.Message)

func (*CreateProductSetRequest) XXX_Size

func (m *CreateProductSetRequest) XXX_Size() int

func (*CreateProductSetRequest) XXX_Unmarshal

func (m *CreateProductSetRequest) XXX_Unmarshal(b []byte) error

type CreateReferenceImageRequest

type CreateReferenceImageRequest struct {
	// Resource name of the product in which to create the reference image.
	//
	// Format is
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The reference image to create.
	// If an image ID is specified, it is ignored.
	ReferenceImage *ReferenceImage `protobuf:"bytes,2,opt,name=reference_image,json=referenceImage,proto3" json:"reference_image,omitempty"`
	// A user-supplied resource id for the ReferenceImage to be added. If set,
	// the server will attempt to use this value as the resource id. If it is
	// already in use, an error is returned with code ALREADY_EXISTS. Must be at
	// most 128 characters long. It cannot contain the character `/`.
	ReferenceImageId     string   `protobuf:"bytes,3,opt,name=reference_image_id,json=referenceImageId,proto3" json:"reference_image_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `CreateReferenceImage` method.

func (*CreateReferenceImageRequest) Descriptor

func (*CreateReferenceImageRequest) Descriptor() ([]byte, []int)

func (*CreateReferenceImageRequest) GetParent

func (m *CreateReferenceImageRequest) GetParent() string

func (*CreateReferenceImageRequest) GetReferenceImage

func (m *CreateReferenceImageRequest) GetReferenceImage() *ReferenceImage

func (*CreateReferenceImageRequest) GetReferenceImageId

func (m *CreateReferenceImageRequest) GetReferenceImageId() string

func (*CreateReferenceImageRequest) ProtoMessage

func (*CreateReferenceImageRequest) ProtoMessage()

func (*CreateReferenceImageRequest) Reset

func (m *CreateReferenceImageRequest) Reset()

func (*CreateReferenceImageRequest) String

func (m *CreateReferenceImageRequest) String() string

func (*CreateReferenceImageRequest) XXX_DiscardUnknown

func (m *CreateReferenceImageRequest) XXX_DiscardUnknown()

func (*CreateReferenceImageRequest) XXX_Marshal

func (m *CreateReferenceImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateReferenceImageRequest) XXX_Merge

func (m *CreateReferenceImageRequest) XXX_Merge(src proto.Message)

func (*CreateReferenceImageRequest) XXX_Size

func (m *CreateReferenceImageRequest) XXX_Size() int

func (*CreateReferenceImageRequest) XXX_Unmarshal

func (m *CreateReferenceImageRequest) XXX_Unmarshal(b []byte) error

type CropHint

type CropHint struct {
	// The bounding polygon for the crop region. The coordinates of the bounding
	// box are in the original image's scale, as returned in `ImageParams`.
	BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
	// Confidence of this being a salient region.  Range [0, 1].
	Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// Fraction of importance of this salient region with respect to the original
	// image.
	ImportanceFraction   float32  `protobuf:"fixed32,3,opt,name=importance_fraction,json=importanceFraction,proto3" json:"importance_fraction,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Single crop hint that is used to generate a new crop when serving an image.

func (*CropHint) Descriptor

func (*CropHint) Descriptor() ([]byte, []int)

func (*CropHint) GetBoundingPoly

func (m *CropHint) GetBoundingPoly() *BoundingPoly

func (*CropHint) GetConfidence

func (m *CropHint) GetConfidence() float32

func (*CropHint) GetImportanceFraction

func (m *CropHint) GetImportanceFraction() float32

func (*CropHint) ProtoMessage

func (*CropHint) ProtoMessage()

func (*CropHint) Reset

func (m *CropHint) Reset()

func (*CropHint) String

func (m *CropHint) String() string

func (*CropHint) XXX_DiscardUnknown

func (m *CropHint) XXX_DiscardUnknown()

func (*CropHint) XXX_Marshal

func (m *CropHint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CropHint) XXX_Merge

func (m *CropHint) XXX_Merge(src proto.Message)

func (*CropHint) XXX_Size

func (m *CropHint) XXX_Size() int

func (*CropHint) XXX_Unmarshal

func (m *CropHint) XXX_Unmarshal(b []byte) error

type CropHintsAnnotation

type CropHintsAnnotation struct {
	// Crop hint results.
	CropHints            []*CropHint `protobuf:"bytes,1,rep,name=crop_hints,json=cropHints,proto3" json:"crop_hints,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Set of crop hints that are used to generate new crops when serving images.

func (*CropHintsAnnotation) Descriptor

func (*CropHintsAnnotation) Descriptor() ([]byte, []int)

func (*CropHintsAnnotation) GetCropHints

func (m *CropHintsAnnotation) GetCropHints() []*CropHint

func (*CropHintsAnnotation) ProtoMessage

func (*CropHintsAnnotation) ProtoMessage()

func (*CropHintsAnnotation) Reset

func (m *CropHintsAnnotation) Reset()

func (*CropHintsAnnotation) String

func (m *CropHintsAnnotation) String() string

func (*CropHintsAnnotation) XXX_DiscardUnknown

func (m *CropHintsAnnotation) XXX_DiscardUnknown()

func (*CropHintsAnnotation) XXX_Marshal

func (m *CropHintsAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CropHintsAnnotation) XXX_Merge

func (m *CropHintsAnnotation) XXX_Merge(src proto.Message)

func (*CropHintsAnnotation) XXX_Size

func (m *CropHintsAnnotation) XXX_Size() int

func (*CropHintsAnnotation) XXX_Unmarshal

func (m *CropHintsAnnotation) XXX_Unmarshal(b []byte) error

type CropHintsParams

type CropHintsParams struct {
	// Aspect ratios in floats, representing the ratio of the width to the height
	// of the image. For example, if the desired aspect ratio is 4/3, the
	// corresponding float value should be 1.33333.  If not specified, the
	// best possible crop is returned. The number of provided aspect ratios is
	// limited to a maximum of 16; any aspect ratios provided after the 16th are
	// ignored.
	AspectRatios         []float32 `protobuf:"fixed32,1,rep,packed,name=aspect_ratios,json=aspectRatios,proto3" json:"aspect_ratios,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

Parameters for crop hints annotation request.

func (*CropHintsParams) Descriptor

func (*CropHintsParams) Descriptor() ([]byte, []int)

func (*CropHintsParams) GetAspectRatios

func (m *CropHintsParams) GetAspectRatios() []float32

func (*CropHintsParams) ProtoMessage

func (*CropHintsParams) ProtoMessage()

func (*CropHintsParams) Reset

func (m *CropHintsParams) Reset()

func (*CropHintsParams) String

func (m *CropHintsParams) String() string

func (*CropHintsParams) XXX_DiscardUnknown

func (m *CropHintsParams) XXX_DiscardUnknown()

func (*CropHintsParams) XXX_Marshal

func (m *CropHintsParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CropHintsParams) XXX_Merge

func (m *CropHintsParams) XXX_Merge(src proto.Message)

func (*CropHintsParams) XXX_Size

func (m *CropHintsParams) XXX_Size() int

func (*CropHintsParams) XXX_Unmarshal

func (m *CropHintsParams) XXX_Unmarshal(b []byte) error

type DeleteProductRequest

type DeleteProductRequest struct {
	// Resource name of product to delete.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `DeleteProduct` method.

func (*DeleteProductRequest) Descriptor

func (*DeleteProductRequest) Descriptor() ([]byte, []int)

func (*DeleteProductRequest) GetName

func (m *DeleteProductRequest) GetName() string

func (*DeleteProductRequest) ProtoMessage

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) Reset

func (m *DeleteProductRequest) Reset()

func (*DeleteProductRequest) String

func (m *DeleteProductRequest) String() string

func (*DeleteProductRequest) XXX_DiscardUnknown

func (m *DeleteProductRequest) XXX_DiscardUnknown()

func (*DeleteProductRequest) XXX_Marshal

func (m *DeleteProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteProductRequest) XXX_Merge

func (m *DeleteProductRequest) XXX_Merge(src proto.Message)

func (*DeleteProductRequest) XXX_Size

func (m *DeleteProductRequest) XXX_Size() int

func (*DeleteProductRequest) XXX_Unmarshal

func (m *DeleteProductRequest) XXX_Unmarshal(b []byte) error

type DeleteProductSetRequest

type DeleteProductSetRequest struct {
	// Resource name of the ProductSet to delete.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `DeleteProductSet` method.

func (*DeleteProductSetRequest) Descriptor

func (*DeleteProductSetRequest) Descriptor() ([]byte, []int)

func (*DeleteProductSetRequest) GetName

func (m *DeleteProductSetRequest) GetName() string

func (*DeleteProductSetRequest) ProtoMessage

func (*DeleteProductSetRequest) ProtoMessage()

func (*DeleteProductSetRequest) Reset

func (m *DeleteProductSetRequest) Reset()

func (*DeleteProductSetRequest) String

func (m *DeleteProductSetRequest) String() string

func (*DeleteProductSetRequest) XXX_DiscardUnknown

func (m *DeleteProductSetRequest) XXX_DiscardUnknown()

func (*DeleteProductSetRequest) XXX_Marshal

func (m *DeleteProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteProductSetRequest) XXX_Merge

func (m *DeleteProductSetRequest) XXX_Merge(src proto.Message)

func (*DeleteProductSetRequest) XXX_Size

func (m *DeleteProductSetRequest) XXX_Size() int

func (*DeleteProductSetRequest) XXX_Unmarshal

func (m *DeleteProductSetRequest) XXX_Unmarshal(b []byte) error

type DeleteReferenceImageRequest

type DeleteReferenceImageRequest struct {
	// The resource name of the reference image to delete.
	//
	// Format is:
	//
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `DeleteReferenceImage` method.

func (*DeleteReferenceImageRequest) Descriptor

func (*DeleteReferenceImageRequest) Descriptor() ([]byte, []int)

func (*DeleteReferenceImageRequest) GetName

func (m *DeleteReferenceImageRequest) GetName() string

func (*DeleteReferenceImageRequest) ProtoMessage

func (*DeleteReferenceImageRequest) ProtoMessage()

func (*DeleteReferenceImageRequest) Reset

func (m *DeleteReferenceImageRequest) Reset()

func (*DeleteReferenceImageRequest) String

func (m *DeleteReferenceImageRequest) String() string

func (*DeleteReferenceImageRequest) XXX_DiscardUnknown

func (m *DeleteReferenceImageRequest) XXX_DiscardUnknown()

func (*DeleteReferenceImageRequest) XXX_Marshal

func (m *DeleteReferenceImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteReferenceImageRequest) XXX_Merge

func (m *DeleteReferenceImageRequest) XXX_Merge(src proto.Message)

func (*DeleteReferenceImageRequest) XXX_Size

func (m *DeleteReferenceImageRequest) XXX_Size() int

func (*DeleteReferenceImageRequest) XXX_Unmarshal

func (m *DeleteReferenceImageRequest) XXX_Unmarshal(b []byte) error

type DominantColorsAnnotation

type DominantColorsAnnotation struct {
	// RGB color values with their score and pixel fraction.
	Colors               []*ColorInfo `protobuf:"bytes,1,rep,name=colors,proto3" json:"colors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Set of dominant colors and their corresponding scores.

func (*DominantColorsAnnotation) Descriptor

func (*DominantColorsAnnotation) Descriptor() ([]byte, []int)

func (*DominantColorsAnnotation) GetColors

func (m *DominantColorsAnnotation) GetColors() []*ColorInfo

func (*DominantColorsAnnotation) ProtoMessage

func (*DominantColorsAnnotation) ProtoMessage()

func (*DominantColorsAnnotation) Reset

func (m *DominantColorsAnnotation) Reset()

func (*DominantColorsAnnotation) String

func (m *DominantColorsAnnotation) String() string

func (*DominantColorsAnnotation) XXX_DiscardUnknown

func (m *DominantColorsAnnotation) XXX_DiscardUnknown()

func (*DominantColorsAnnotation) XXX_Marshal

func (m *DominantColorsAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DominantColorsAnnotation) XXX_Merge

func (m *DominantColorsAnnotation) XXX_Merge(src proto.Message)

func (*DominantColorsAnnotation) XXX_Size

func (m *DominantColorsAnnotation) XXX_Size() int

func (*DominantColorsAnnotation) XXX_Unmarshal

func (m *DominantColorsAnnotation) XXX_Unmarshal(b []byte) error

type EntityAnnotation

type EntityAnnotation struct {
	// Opaque entity ID. Some IDs may be available in
	// [Google Knowledge Graph Search
	// API](https://developers.google.com/knowledge-graph/).
	Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// The language code for the locale in which the entity textual
	// `description` is expressed.
	Locale string `protobuf:"bytes,2,opt,name=locale,proto3" json:"locale,omitempty"`
	// Entity textual description, expressed in its `locale` language.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Overall score of the result. Range [0, 1].
	Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"`
	// **Deprecated. Use `score` instead.**
	// The accuracy of the entity detection in an image.
	// For example, for an image in which the "Eiffel Tower" entity is detected,
	// this field represents the confidence that there is a tower in the query
	// image. Range [0, 1].
	Confidence float32 `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// The relevancy of the ICA (Image Content Annotation) label to the
	// image. For example, the relevancy of "tower" is likely higher to an image
	// containing the detected "Eiffel Tower" than to an image containing a
	// detected distant towering building, even though the confidence that
	// there is a tower in each image may be the same. Range [0, 1].
	Topicality float32 `protobuf:"fixed32,6,opt,name=topicality,proto3" json:"topicality,omitempty"`
	// Image region to which this entity belongs. Not produced
	// for `LABEL_DETECTION` features.
	BoundingPoly *BoundingPoly `protobuf:"bytes,7,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
	// The location information for the detected entity. Multiple
	// `LocationInfo` elements can be present because one location may
	// indicate the location of the scene in the image, and another location
	// may indicate the location of the place where the image was taken.
	// Location information is usually present for landmarks.
	Locations []*LocationInfo `protobuf:"bytes,8,rep,name=locations,proto3" json:"locations,omitempty"`
	// Some entities may have optional user-supplied `Property` (name/value)
	// fields, such a score or string that qualifies the entity.
	Properties           []*Property `protobuf:"bytes,9,rep,name=properties,proto3" json:"properties,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Set of detected entity features.

func (*EntityAnnotation) Descriptor

func (*EntityAnnotation) Descriptor() ([]byte, []int)

func (*EntityAnnotation) GetBoundingPoly

func (m *EntityAnnotation) GetBoundingPoly() *BoundingPoly

func (*EntityAnnotation) GetConfidence

func (m *EntityAnnotation) GetConfidence() float32

func (*EntityAnnotation) GetDescription

func (m *EntityAnnotation) GetDescription() string

func (*EntityAnnotation) GetLocale

func (m *EntityAnnotation) GetLocale() string

func (*EntityAnnotation) GetLocations

func (m *EntityAnnotation) GetLocations() []*LocationInfo

func (*EntityAnnotation) GetMid

func (m *EntityAnnotation) GetMid() string

func (*EntityAnnotation) GetProperties

func (m *EntityAnnotation) GetProperties() []*Property

func (*EntityAnnotation) GetScore

func (m *EntityAnnotation) GetScore() float32

func (*EntityAnnotation) GetTopicality

func (m *EntityAnnotation) GetTopicality() float32

func (*EntityAnnotation) ProtoMessage

func (*EntityAnnotation) ProtoMessage()

func (*EntityAnnotation) Reset

func (m *EntityAnnotation) Reset()

func (*EntityAnnotation) String

func (m *EntityAnnotation) String() string

func (*EntityAnnotation) XXX_DiscardUnknown

func (m *EntityAnnotation) XXX_DiscardUnknown()

func (*EntityAnnotation) XXX_Marshal

func (m *EntityAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityAnnotation) XXX_Merge

func (m *EntityAnnotation) XXX_Merge(src proto.Message)

func (*EntityAnnotation) XXX_Size

func (m *EntityAnnotation) XXX_Size() int

func (*EntityAnnotation) XXX_Unmarshal

func (m *EntityAnnotation) XXX_Unmarshal(b []byte) error

type FaceAnnotation

type FaceAnnotation struct {
	// The bounding polygon around the face. The coordinates of the bounding box
	// are in the original image's scale, as returned in `ImageParams`.
	// The bounding box is computed to "frame" the face in accordance with human
	// expectations. It is based on the landmarker results.
	// Note that one or more x and/or y coordinates may not be generated in the
	// `BoundingPoly` (the polygon will be unbounded) if only a partial face
	// appears in the image to be annotated.
	BoundingPoly *BoundingPoly `protobuf:"bytes,1,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
	// The `fd_bounding_poly` bounding polygon is tighter than the
	// `boundingPoly`, and encloses only the skin part of the face. Typically, it
	// is used to eliminate the face from any image analysis that detects the
	// "amount of skin" visible in an image. It is not based on the
	// landmarker results, only on the initial face detection, hence
	// the <code>fd</code> (face detection) prefix.
	FdBoundingPoly *BoundingPoly `protobuf:"bytes,2,opt,name=fd_bounding_poly,json=fdBoundingPoly,proto3" json:"fd_bounding_poly,omitempty"`
	// Detected face landmarks.
	Landmarks []*FaceAnnotation_Landmark `protobuf:"bytes,3,rep,name=landmarks,proto3" json:"landmarks,omitempty"`
	// Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
	// of the face relative to the image vertical about the axis perpendicular to
	// the face. Range [-180,180].
	RollAngle float32 `protobuf:"fixed32,4,opt,name=roll_angle,json=rollAngle,proto3" json:"roll_angle,omitempty"`
	// Yaw angle, which indicates the leftward/rightward angle that the face is
	// pointing relative to the vertical plane perpendicular to the image. Range
	// [-180,180].
	PanAngle float32 `protobuf:"fixed32,5,opt,name=pan_angle,json=panAngle,proto3" json:"pan_angle,omitempty"`
	// Pitch angle, which indicates the upwards/downwards angle that the face is
	// pointing relative to the image's horizontal plane. Range [-180,180].
	TiltAngle float32 `protobuf:"fixed32,6,opt,name=tilt_angle,json=tiltAngle,proto3" json:"tilt_angle,omitempty"`
	// Detection confidence. Range [0, 1].
	DetectionConfidence float32 `protobuf:"fixed32,7,opt,name=detection_confidence,json=detectionConfidence,proto3" json:"detection_confidence,omitempty"`
	// Face landmarking confidence. Range [0, 1].
	LandmarkingConfidence float32 `` /* 126-byte string literal not displayed */
	// Joy likelihood.
	JoyLikelihood Likelihood `` /* 147-byte string literal not displayed */
	// Sorrow likelihood.
	SorrowLikelihood Likelihood `` /* 157-byte string literal not displayed */
	// Anger likelihood.
	AngerLikelihood Likelihood `` /* 154-byte string literal not displayed */
	// Surprise likelihood.
	SurpriseLikelihood Likelihood `` /* 163-byte string literal not displayed */
	// Under-exposed likelihood.
	UnderExposedLikelihood Likelihood `` /* 177-byte string literal not displayed */
	// Blurred likelihood.
	BlurredLikelihood Likelihood `` /* 160-byte string literal not displayed */
	// Headwear likelihood.
	HeadwearLikelihood   Likelihood `` /* 163-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

A face annotation object contains the results of face detection.

func (*FaceAnnotation) Descriptor

func (*FaceAnnotation) Descriptor() ([]byte, []int)

func (*FaceAnnotation) GetAngerLikelihood

func (m *FaceAnnotation) GetAngerLikelihood() Likelihood

func (*FaceAnnotation) GetBlurredLikelihood

func (m *FaceAnnotation) GetBlurredLikelihood() Likelihood

func (*FaceAnnotation) GetBoundingPoly

func (m *FaceAnnotation) GetBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetDetectionConfidence

func (m *FaceAnnotation) GetDetectionConfidence() float32

func (*FaceAnnotation) GetFdBoundingPoly

func (m *FaceAnnotation) GetFdBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetHeadwearLikelihood

func (m *FaceAnnotation) GetHeadwearLikelihood() Likelihood

func (*FaceAnnotation) GetJoyLikelihood

func (m *FaceAnnotation) GetJoyLikelihood() Likelihood

func (*FaceAnnotation) GetLandmarkingConfidence

func (m *FaceAnnotation) GetLandmarkingConfidence() float32

func (*FaceAnnotation) GetLandmarks

func (m *FaceAnnotation) GetLandmarks() []*FaceAnnotation_Landmark

func (*FaceAnnotation) GetPanAngle

func (m *FaceAnnotation) GetPanAngle() float32

func (*FaceAnnotation) GetRollAngle

func (m *FaceAnnotation) GetRollAngle() float32

func (*FaceAnnotation) GetSorrowLikelihood

func (m *FaceAnnotation) GetSorrowLikelihood() Likelihood

func (*FaceAnnotation) GetSurpriseLikelihood

func (m *FaceAnnotation) GetSurpriseLikelihood() Likelihood

func (*FaceAnnotation) GetTiltAngle

func (m *FaceAnnotation) GetTiltAngle() float32

func (*FaceAnnotation) GetUnderExposedLikelihood

func (m *FaceAnnotation) GetUnderExposedLikelihood() Likelihood

func (*FaceAnnotation) ProtoMessage

func (*FaceAnnotation) ProtoMessage()

func (*FaceAnnotation) Reset

func (m *FaceAnnotation) Reset()

func (*FaceAnnotation) String

func (m *FaceAnnotation) String() string

func (*FaceAnnotation) XXX_DiscardUnknown

func (m *FaceAnnotation) XXX_DiscardUnknown()

func (*FaceAnnotation) XXX_Marshal

func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FaceAnnotation) XXX_Merge

func (m *FaceAnnotation) XXX_Merge(src proto.Message)

func (*FaceAnnotation) XXX_Size

func (m *FaceAnnotation) XXX_Size() int

func (*FaceAnnotation) XXX_Unmarshal

func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error

type FaceAnnotation_Landmark

type FaceAnnotation_Landmark struct {
	// Face landmark type.
	Type FaceAnnotation_Landmark_Type `` /* 126-byte string literal not displayed */
	// Face landmark position.
	Position             *Position `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

A face-specific landmark (for example, a face feature).

func (*FaceAnnotation_Landmark) Descriptor

func (*FaceAnnotation_Landmark) Descriptor() ([]byte, []int)

func (*FaceAnnotation_Landmark) GetPosition

func (m *FaceAnnotation_Landmark) GetPosition() *Position

func (*FaceAnnotation_Landmark) GetType

func (*FaceAnnotation_Landmark) ProtoMessage

func (*FaceAnnotation_Landmark) ProtoMessage()

func (*FaceAnnotation_Landmark) Reset

func (m *FaceAnnotation_Landmark) Reset()

func (*FaceAnnotation_Landmark) String

func (m *FaceAnnotation_Landmark) String() string

func (*FaceAnnotation_Landmark) XXX_DiscardUnknown

func (m *FaceAnnotation_Landmark) XXX_DiscardUnknown()

func (*FaceAnnotation_Landmark) XXX_Marshal

func (m *FaceAnnotation_Landmark) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FaceAnnotation_Landmark) XXX_Merge

func (m *FaceAnnotation_Landmark) XXX_Merge(src proto.Message)

func (*FaceAnnotation_Landmark) XXX_Size

func (m *FaceAnnotation_Landmark) XXX_Size() int

func (*FaceAnnotation_Landmark) XXX_Unmarshal

func (m *FaceAnnotation_Landmark) XXX_Unmarshal(b []byte) error

type FaceAnnotation_Landmark_Type

type FaceAnnotation_Landmark_Type int32

Face landmark (feature) type. Left and right are defined from the vantage of the viewer of the image without considering mirror projections typical of photos. So, `LEFT_EYE`, typically, is the person's right eye.

const (
	// Unknown face landmark detected. Should not be filled.
	FaceAnnotation_Landmark_UNKNOWN_LANDMARK FaceAnnotation_Landmark_Type = 0
	// Left eye.
	FaceAnnotation_Landmark_LEFT_EYE FaceAnnotation_Landmark_Type = 1
	// Right eye.
	FaceAnnotation_Landmark_RIGHT_EYE FaceAnnotation_Landmark_Type = 2
	// Left of left eyebrow.
	FaceAnnotation_Landmark_LEFT_OF_LEFT_EYEBROW FaceAnnotation_Landmark_Type = 3
	// Right of left eyebrow.
	FaceAnnotation_Landmark_RIGHT_OF_LEFT_EYEBROW FaceAnnotation_Landmark_Type = 4
	// Left of right eyebrow.
	FaceAnnotation_Landmark_LEFT_OF_RIGHT_EYEBROW FaceAnnotation_Landmark_Type = 5
	// Right of right eyebrow.
	FaceAnnotation_Landmark_RIGHT_OF_RIGHT_EYEBROW FaceAnnotation_Landmark_Type = 6
	// Midpoint between eyes.
	FaceAnnotation_Landmark_MIDPOINT_BETWEEN_EYES FaceAnnotation_Landmark_Type = 7
	// Nose tip.
	FaceAnnotation_Landmark_NOSE_TIP FaceAnnotation_Landmark_Type = 8
	// Upper lip.
	FaceAnnotation_Landmark_UPPER_LIP FaceAnnotation_Landmark_Type = 9
	// Lower lip.
	FaceAnnotation_Landmark_LOWER_LIP FaceAnnotation_Landmark_Type = 10
	// Mouth left.
	FaceAnnotation_Landmark_MOUTH_LEFT FaceAnnotation_Landmark_Type = 11
	// Mouth right.
	FaceAnnotation_Landmark_MOUTH_RIGHT FaceAnnotation_Landmark_Type = 12
	// Mouth center.
	FaceAnnotation_Landmark_MOUTH_CENTER FaceAnnotation_Landmark_Type = 13
	// Nose, bottom right.
	FaceAnnotation_Landmark_NOSE_BOTTOM_RIGHT FaceAnnotation_Landmark_Type = 14
	// Nose, bottom left.
	FaceAnnotation_Landmark_NOSE_BOTTOM_LEFT FaceAnnotation_Landmark_Type = 15
	// Nose, bottom center.
	FaceAnnotation_Landmark_NOSE_BOTTOM_CENTER FaceAnnotation_Landmark_Type = 16
	// Left eye, top boundary.
	FaceAnnotation_Landmark_LEFT_EYE_TOP_BOUNDARY FaceAnnotation_Landmark_Type = 17
	// Left eye, right corner.
	FaceAnnotation_Landmark_LEFT_EYE_RIGHT_CORNER FaceAnnotation_Landmark_Type = 18
	// Left eye, bottom boundary.
	FaceAnnotation_Landmark_LEFT_EYE_BOTTOM_BOUNDARY FaceAnnotation_Landmark_Type = 19
	// Left eye, left corner.
	FaceAnnotation_Landmark_LEFT_EYE_LEFT_CORNER FaceAnnotation_Landmark_Type = 20
	// Right eye, top boundary.
	FaceAnnotation_Landmark_RIGHT_EYE_TOP_BOUNDARY FaceAnnotation_Landmark_Type = 21
	// Right eye, right corner.
	FaceAnnotation_Landmark_RIGHT_EYE_RIGHT_CORNER FaceAnnotation_Landmark_Type = 22
	// Right eye, bottom boundary.
	FaceAnnotation_Landmark_RIGHT_EYE_BOTTOM_BOUNDARY FaceAnnotation_Landmark_Type = 23
	// Right eye, left corner.
	FaceAnnotation_Landmark_RIGHT_EYE_LEFT_CORNER FaceAnnotation_Landmark_Type = 24
	// Left eyebrow, upper midpoint.
	FaceAnnotation_Landmark_LEFT_EYEBROW_UPPER_MIDPOINT FaceAnnotation_Landmark_Type = 25
	// Right eyebrow, upper midpoint.
	FaceAnnotation_Landmark_RIGHT_EYEBROW_UPPER_MIDPOINT FaceAnnotation_Landmark_Type = 26
	// Left ear tragion.
	FaceAnnotation_Landmark_LEFT_EAR_TRAGION FaceAnnotation_Landmark_Type = 27
	// Right ear tragion.
	FaceAnnotation_Landmark_RIGHT_EAR_TRAGION FaceAnnotation_Landmark_Type = 28
	// Left eye pupil.
	FaceAnnotation_Landmark_LEFT_EYE_PUPIL FaceAnnotation_Landmark_Type = 29
	// Right eye pupil.
	FaceAnnotation_Landmark_RIGHT_EYE_PUPIL FaceAnnotation_Landmark_Type = 30
	// Forehead glabella.
	FaceAnnotation_Landmark_FOREHEAD_GLABELLA FaceAnnotation_Landmark_Type = 31
	// Chin gnathion.
	FaceAnnotation_Landmark_CHIN_GNATHION FaceAnnotation_Landmark_Type = 32
	// Chin left gonion.
	FaceAnnotation_Landmark_CHIN_LEFT_GONION FaceAnnotation_Landmark_Type = 33
	// Chin right gonion.
	FaceAnnotation_Landmark_CHIN_RIGHT_GONION FaceAnnotation_Landmark_Type = 34
)

func (FaceAnnotation_Landmark_Type) EnumDescriptor

func (FaceAnnotation_Landmark_Type) EnumDescriptor() ([]byte, []int)

func (FaceAnnotation_Landmark_Type) String

type Feature

type Feature struct {
	// The feature type.
	Type Feature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1p3beta1.Feature_Type" json:"type,omitempty"`
	// Maximum number of results of this type. Does not apply to
	// `TEXT_DETECTION`, `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
	MaxResults int32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
	// Model to use for the feature.
	// Supported values: "builtin/stable" (the default if unset) and
	// "builtin/latest".
	Model                string   `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The type of Google Cloud Vision API detection to perform, and the maximum number of results to return for that type. Multiple `Feature` objects can be specified in the `features` list.

func (*Feature) Descriptor

func (*Feature) Descriptor() ([]byte, []int)

func (*Feature) GetMaxResults

func (m *Feature) GetMaxResults() int32

func (*Feature) GetModel

func (m *Feature) GetModel() string

func (*Feature) GetType

func (m *Feature) GetType() Feature_Type

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) Reset

func (m *Feature) Reset()

func (*Feature) String

func (m *Feature) String() string

func (*Feature) XXX_DiscardUnknown

func (m *Feature) XXX_DiscardUnknown()

func (*Feature) XXX_Marshal

func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Feature) XXX_Merge

func (m *Feature) XXX_Merge(src proto.Message)

func (*Feature) XXX_Size

func (m *Feature) XXX_Size() int

func (*Feature) XXX_Unmarshal

func (m *Feature) XXX_Unmarshal(b []byte) error

type Feature_Type

type Feature_Type int32

Type of Google Cloud Vision API feature to be extracted.

const (
	// Unspecified feature type.
	Feature_TYPE_UNSPECIFIED Feature_Type = 0
	// Run face detection.
	Feature_FACE_DETECTION Feature_Type = 1
	// Run landmark detection.
	Feature_LANDMARK_DETECTION Feature_Type = 2
	// Run logo detection.
	Feature_LOGO_DETECTION Feature_Type = 3
	// Run label detection.
	Feature_LABEL_DETECTION Feature_Type = 4
	// Run text detection / optical character recognition (OCR). Text detection
	// is optimized for areas of text within a larger image; if the image is
	// a document, use `DOCUMENT_TEXT_DETECTION` instead.
	Feature_TEXT_DETECTION Feature_Type = 5
	// Run dense text document OCR. Takes precedence when both
	// `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
	Feature_DOCUMENT_TEXT_DETECTION Feature_Type = 11
	// Run Safe Search to detect potentially unsafe
	// or undesirable content.
	Feature_SAFE_SEARCH_DETECTION Feature_Type = 6
	// Compute a set of image properties, such as the
	// image's dominant colors.
	Feature_IMAGE_PROPERTIES Feature_Type = 7
	// Run crop hints.
	Feature_CROP_HINTS Feature_Type = 9
	// Run web detection.
	Feature_WEB_DETECTION Feature_Type = 10
	// Run Product Search.
	Feature_PRODUCT_SEARCH Feature_Type = 12
	// Run localizer for object detection.
	Feature_OBJECT_LOCALIZATION Feature_Type = 19
)

func (Feature_Type) EnumDescriptor

func (Feature_Type) EnumDescriptor() ([]byte, []int)

func (Feature_Type) String

func (x Feature_Type) String() string

type GcsDestination

type GcsDestination struct {
	// Google Cloud Storage URI where the results will be stored. Results will
	// be in JSON format and preceded by its corresponding input URI. This field
	// can either represent a single file, or a prefix for multiple outputs.
	// Prefixes must end in a `/`.
	//
	// Examples:
	//
	// *    File: gs://bucket-name/filename.json
	// *    Prefix: gs://bucket-name/prefix/here/
	// *    File: gs://bucket-name/prefix/here
	//
	// If multiple outputs, each response is still AnnotateFileResponse, each of
	// which contains some subset of the full list of AnnotateImageResponse.
	// Multiple outputs can happen if, for example, the output JSON is too large
	// and overflows into multiple sharded files.
	Uri                  string   `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Google Cloud Storage location where the output will be written to.

func (*GcsDestination) Descriptor

func (*GcsDestination) Descriptor() ([]byte, []int)

func (*GcsDestination) GetUri

func (m *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) Reset

func (m *GcsDestination) Reset()

func (*GcsDestination) String

func (m *GcsDestination) String() string

func (*GcsDestination) XXX_DiscardUnknown

func (m *GcsDestination) XXX_DiscardUnknown()

func (*GcsDestination) XXX_Marshal

func (m *GcsDestination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GcsDestination) XXX_Merge

func (m *GcsDestination) XXX_Merge(src proto.Message)

func (*GcsDestination) XXX_Size

func (m *GcsDestination) XXX_Size() int

func (*GcsDestination) XXX_Unmarshal

func (m *GcsDestination) XXX_Unmarshal(b []byte) error

type GcsSource

type GcsSource struct {
	// Google Cloud Storage URI for the input file. This must only be a
	// Google Cloud Storage object. Wildcards are not currently supported.
	Uri                  string   `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Google Cloud Storage location where the input will be read from.

func (*GcsSource) Descriptor

func (*GcsSource) Descriptor() ([]byte, []int)

func (*GcsSource) GetUri

func (m *GcsSource) GetUri() string

func (*GcsSource) ProtoMessage

func (*GcsSource) ProtoMessage()

func (*GcsSource) Reset

func (m *GcsSource) Reset()

func (*GcsSource) String

func (m *GcsSource) String() string

func (*GcsSource) XXX_DiscardUnknown

func (m *GcsSource) XXX_DiscardUnknown()

func (*GcsSource) XXX_Marshal

func (m *GcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GcsSource) XXX_Merge

func (m *GcsSource) XXX_Merge(src proto.Message)

func (*GcsSource) XXX_Size

func (m *GcsSource) XXX_Size() int

func (*GcsSource) XXX_Unmarshal

func (m *GcsSource) XXX_Unmarshal(b []byte) error

type GetProductRequest

type GetProductRequest struct {
	// Resource name of the Product to get.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `GetProduct` method.

func (*GetProductRequest) Descriptor

func (*GetProductRequest) Descriptor() ([]byte, []int)

func (*GetProductRequest) GetName

func (m *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) Reset

func (m *GetProductRequest) Reset()

func (*GetProductRequest) String

func (m *GetProductRequest) String() string

func (*GetProductRequest) XXX_DiscardUnknown

func (m *GetProductRequest) XXX_DiscardUnknown()

func (*GetProductRequest) XXX_Marshal

func (m *GetProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetProductRequest) XXX_Merge

func (m *GetProductRequest) XXX_Merge(src proto.Message)

func (*GetProductRequest) XXX_Size

func (m *GetProductRequest) XXX_Size() int

func (*GetProductRequest) XXX_Unmarshal

func (m *GetProductRequest) XXX_Unmarshal(b []byte) error

type GetProductSetRequest

type GetProductSetRequest struct {
	// Resource name of the ProductSet to get.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `GetProductSet` method.

func (*GetProductSetRequest) Descriptor

func (*GetProductSetRequest) Descriptor() ([]byte, []int)

func (*GetProductSetRequest) GetName

func (m *GetProductSetRequest) GetName() string

func (*GetProductSetRequest) ProtoMessage

func (*GetProductSetRequest) ProtoMessage()

func (*GetProductSetRequest) Reset

func (m *GetProductSetRequest) Reset()

func (*GetProductSetRequest) String

func (m *GetProductSetRequest) String() string

func (*GetProductSetRequest) XXX_DiscardUnknown

func (m *GetProductSetRequest) XXX_DiscardUnknown()

func (*GetProductSetRequest) XXX_Marshal

func (m *GetProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetProductSetRequest) XXX_Merge

func (m *GetProductSetRequest) XXX_Merge(src proto.Message)

func (*GetProductSetRequest) XXX_Size

func (m *GetProductSetRequest) XXX_Size() int

func (*GetProductSetRequest) XXX_Unmarshal

func (m *GetProductSetRequest) XXX_Unmarshal(b []byte) error

type GetReferenceImageRequest

type GetReferenceImageRequest struct {
	// The resource name of the ReferenceImage to get.
	//
	// Format is:
	//
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `GetReferenceImage` method.

func (*GetReferenceImageRequest) Descriptor

func (*GetReferenceImageRequest) Descriptor() ([]byte, []int)

func (*GetReferenceImageRequest) GetName

func (m *GetReferenceImageRequest) GetName() string

func (*GetReferenceImageRequest) ProtoMessage

func (*GetReferenceImageRequest) ProtoMessage()

func (*GetReferenceImageRequest) Reset

func (m *GetReferenceImageRequest) Reset()

func (*GetReferenceImageRequest) String

func (m *GetReferenceImageRequest) String() string

func (*GetReferenceImageRequest) XXX_DiscardUnknown

func (m *GetReferenceImageRequest) XXX_DiscardUnknown()

func (*GetReferenceImageRequest) XXX_Marshal

func (m *GetReferenceImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetReferenceImageRequest) XXX_Merge

func (m *GetReferenceImageRequest) XXX_Merge(src proto.Message)

func (*GetReferenceImageRequest) XXX_Size

func (m *GetReferenceImageRequest) XXX_Size() int

func (*GetReferenceImageRequest) XXX_Unmarshal

func (m *GetReferenceImageRequest) XXX_Unmarshal(b []byte) error

type Image

type Image struct {
	// Image content, represented as a stream of bytes.
	// Note: As with all `bytes` fields, protobuffers use a pure binary
	// representation, whereas JSON representations use base64.
	Content []byte `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	// Google Cloud Storage image location, or publicly-accessible image
	// URL. If both `content` and `source` are provided for an image, `content`
	// takes precedence and is used to perform the image annotation request.
	Source               *ImageSource `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Client image to perform Google Cloud Vision API tasks over.

func (*Image) Descriptor

func (*Image) Descriptor() ([]byte, []int)

func (*Image) GetContent

func (m *Image) GetContent() []byte

func (*Image) GetSource

func (m *Image) GetSource() *ImageSource

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal

func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Image) XXX_Merge

func (m *Image) XXX_Merge(src proto.Message)

func (*Image) XXX_Size

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal

func (m *Image) XXX_Unmarshal(b []byte) error

type ImageAnnotationContext

type ImageAnnotationContext struct {
	// The URI of the file used to produce the image.
	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
	// If the file was a PDF or TIFF, this field gives the page number within
	// the file used to produce the image.
	PageNumber           int32    `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.

func (*ImageAnnotationContext) Descriptor

func (*ImageAnnotationContext) Descriptor() ([]byte, []int)

func (*ImageAnnotationContext) GetPageNumber

func (m *ImageAnnotationContext) GetPageNumber() int32

func (*ImageAnnotationContext) GetUri

func (m *ImageAnnotationContext) GetUri() string

func (*ImageAnnotationContext) ProtoMessage

func (*ImageAnnotationContext) ProtoMessage()

func (*ImageAnnotationContext) Reset

func (m *ImageAnnotationContext) Reset()

func (*ImageAnnotationContext) String

func (m *ImageAnnotationContext) String() string

func (*ImageAnnotationContext) XXX_DiscardUnknown

func (m *ImageAnnotationContext) XXX_DiscardUnknown()

func (*ImageAnnotationContext) XXX_Marshal

func (m *ImageAnnotationContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageAnnotationContext) XXX_Merge

func (m *ImageAnnotationContext) XXX_Merge(src proto.Message)

func (*ImageAnnotationContext) XXX_Size

func (m *ImageAnnotationContext) XXX_Size() int

func (*ImageAnnotationContext) XXX_Unmarshal

func (m *ImageAnnotationContext) XXX_Unmarshal(b []byte) error

type ImageAnnotatorClient

type ImageAnnotatorClient interface {
	// Run image detection and annotation for a batch of images.
	BatchAnnotateImages(ctx context.Context, in *BatchAnnotateImagesRequest, opts ...grpc.CallOption) (*BatchAnnotateImagesResponse, error)
	// Run asynchronous image detection and annotation for a list of generic
	// files, such as PDF files, which may contain multiple pages and multiple
	// images per page. Progress and results can be retrieved through the
	// `google.longrunning.Operations` interface.
	// `Operation.metadata` contains `OperationMetadata` (metadata).
	// `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
	AsyncBatchAnnotateFiles(ctx context.Context, in *AsyncBatchAnnotateFilesRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

ImageAnnotatorClient is the client API for ImageAnnotator service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewImageAnnotatorClient

func NewImageAnnotatorClient(cc *grpc.ClientConn) ImageAnnotatorClient

type ImageAnnotatorServer

type ImageAnnotatorServer interface {
	// Run image detection and annotation for a batch of images.
	BatchAnnotateImages(context.Context, *BatchAnnotateImagesRequest) (*BatchAnnotateImagesResponse, error)
	// Run asynchronous image detection and annotation for a list of generic
	// files, such as PDF files, which may contain multiple pages and multiple
	// images per page. Progress and results can be retrieved through the
	// `google.longrunning.Operations` interface.
	// `Operation.metadata` contains `OperationMetadata` (metadata).
	// `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
	AsyncBatchAnnotateFiles(context.Context, *AsyncBatchAnnotateFilesRequest) (*longrunning.Operation, error)
}

ImageAnnotatorServer is the server API for ImageAnnotator service.

type ImageContext

type ImageContext struct {
	// Not used.
	LatLongRect *LatLongRect `protobuf:"bytes,1,opt,name=lat_long_rect,json=latLongRect,proto3" json:"lat_long_rect,omitempty"`
	// List of languages to use for TEXT_DETECTION. In most cases, an empty value
	// yields the best results since it enables automatic language detection. For
	// languages based on the Latin alphabet, setting `language_hints` is not
	// needed. In rare cases, when the language of the text in the image is known,
	// setting a hint will help get better results (although it will be a
	// significant hindrance if the hint is wrong). Text detection returns an
	// error if one or more of the specified languages is not one of the
	// [supported languages](/vision/docs/languages).
	LanguageHints []string `protobuf:"bytes,2,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"`
	// Parameters for crop hints annotation request.
	CropHintsParams *CropHintsParams `protobuf:"bytes,4,opt,name=crop_hints_params,json=cropHintsParams,proto3" json:"crop_hints_params,omitempty"`
	// Parameters for product search.
	ProductSearchParams *ProductSearchParams `protobuf:"bytes,5,opt,name=product_search_params,json=productSearchParams,proto3" json:"product_search_params,omitempty"`
	// Parameters for web detection.
	WebDetectionParams   *WebDetectionParams `protobuf:"bytes,6,opt,name=web_detection_params,json=webDetectionParams,proto3" json:"web_detection_params,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

Image context and/or feature-specific parameters.

func (*ImageContext) Descriptor

func (*ImageContext) Descriptor() ([]byte, []int)

func (*ImageContext) GetCropHintsParams

func (m *ImageContext) GetCropHintsParams() *CropHintsParams

func (*ImageContext) GetLanguageHints

func (m *ImageContext) GetLanguageHints() []string

func (*ImageContext) GetLatLongRect

func (m *ImageContext) GetLatLongRect() *LatLongRect

func (*ImageContext) GetProductSearchParams

func (m *ImageContext) GetProductSearchParams() *ProductSearchParams

func (*ImageContext) GetWebDetectionParams

func (m *ImageContext) GetWebDetectionParams() *WebDetectionParams

func (*ImageContext) ProtoMessage

func (*ImageContext) ProtoMessage()

func (*ImageContext) Reset

func (m *ImageContext) Reset()

func (*ImageContext) String

func (m *ImageContext) String() string

func (*ImageContext) XXX_DiscardUnknown

func (m *ImageContext) XXX_DiscardUnknown()

func (*ImageContext) XXX_Marshal

func (m *ImageContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageContext) XXX_Merge

func (m *ImageContext) XXX_Merge(src proto.Message)

func (*ImageContext) XXX_Size

func (m *ImageContext) XXX_Size() int

func (*ImageContext) XXX_Unmarshal

func (m *ImageContext) XXX_Unmarshal(b []byte) error

type ImageProperties

type ImageProperties struct {
	// If present, dominant colors completed successfully.
	DominantColors       *DominantColorsAnnotation `protobuf:"bytes,1,opt,name=dominant_colors,json=dominantColors,proto3" json:"dominant_colors,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

Stores image properties, such as dominant colors.

func (*ImageProperties) Descriptor

func (*ImageProperties) Descriptor() ([]byte, []int)

func (*ImageProperties) GetDominantColors

func (m *ImageProperties) GetDominantColors() *DominantColorsAnnotation

func (*ImageProperties) ProtoMessage

func (*ImageProperties) ProtoMessage()

func (*ImageProperties) Reset

func (m *ImageProperties) Reset()

func (*ImageProperties) String

func (m *ImageProperties) String() string

func (*ImageProperties) XXX_DiscardUnknown

func (m *ImageProperties) XXX_DiscardUnknown()

func (*ImageProperties) XXX_Marshal

func (m *ImageProperties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageProperties) XXX_Merge

func (m *ImageProperties) XXX_Merge(src proto.Message)

func (*ImageProperties) XXX_Size

func (m *ImageProperties) XXX_Size() int

func (*ImageProperties) XXX_Unmarshal

func (m *ImageProperties) XXX_Unmarshal(b []byte) error

type ImageSource

type ImageSource struct {
	// **Use `image_uri` instead.**
	//
	// The Google Cloud Storage  URI of the form
	// `gs://bucket_name/object_name`. Object versioning is not supported. See
	// [Google Cloud Storage Request
	// URIs](https://cloud.google.com/storage/docs/reference-uris) for more info.
	GcsImageUri string `protobuf:"bytes,1,opt,name=gcs_image_uri,json=gcsImageUri,proto3" json:"gcs_image_uri,omitempty"`
	// The URI of the source image. Can be either:
	//
	// 1. A Google Cloud Storage URI of the form
	//    `gs://bucket_name/object_name`. Object versioning is not supported. See
	//    [Google Cloud Storage Request
	//    URIs](https://cloud.google.com/storage/docs/reference-uris) for more
	//    info.
	//
	// 2. A publicly-accessible image HTTP/HTTPS URL. When fetching images from
	//    HTTP/HTTPS URLs, Google cannot guarantee that the request will be
	//    completed. Your request may fail if the specified host denies the
	//    request (e.g. due to request throttling or DOS prevention), or if Google
	//    throttles requests to the site for abuse prevention. You should not
	//    depend on externally-hosted images for production applications.
	//
	// When both `gcs_image_uri` and `image_uri` are specified, `image_uri` takes
	// precedence.
	ImageUri             string   `protobuf:"bytes,2,opt,name=image_uri,json=imageUri,proto3" json:"image_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

External image source (Google Cloud Storage or web URL image location).

func (*ImageSource) Descriptor

func (*ImageSource) Descriptor() ([]byte, []int)

func (*ImageSource) GetGcsImageUri

func (m *ImageSource) GetGcsImageUri() string

func (*ImageSource) GetImageUri

func (m *ImageSource) GetImageUri() string

func (*ImageSource) ProtoMessage

func (*ImageSource) ProtoMessage()

func (*ImageSource) Reset

func (m *ImageSource) Reset()

func (*ImageSource) String

func (m *ImageSource) String() string

func (*ImageSource) XXX_DiscardUnknown

func (m *ImageSource) XXX_DiscardUnknown()

func (*ImageSource) XXX_Marshal

func (m *ImageSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageSource) XXX_Merge

func (m *ImageSource) XXX_Merge(src proto.Message)

func (*ImageSource) XXX_Size

func (m *ImageSource) XXX_Size() int

func (*ImageSource) XXX_Unmarshal

func (m *ImageSource) XXX_Unmarshal(b []byte) error

type ImportProductSetsGcsSource

type ImportProductSetsGcsSource struct {
	// The Google Cloud Storage URI of the input csv file.
	//
	// The URI must start with gs://
	//
	// The format of the input csv file should be one image per line.
	// In each line, there are 6 columns.
	// 1. image_uri
	// 2, image_id
	// 3. product_set_id
	// 4. product_id
	// 5, product_category
	// 6, product_display_name
	// 7, labels
	// 8. bounding_poly
	//
	// Columns 1, 3, 4, and 5 are required, other columns are optional. A new
	// ProductSet/Product with the same id will be created on the fly
	// if the ProductSet/Product specified by product_set_id/product_id does not
	// exist.
	//
	// The image_id field is optional but has to be unique if provided. If it is
	// empty, we will automatically assign an unique id to the image.
	//
	// The product_display_name field is optional. If it is empty, a space (" ")
	// is used as the place holder for the product display_name, which can
	// be updated later through the realtime API.
	//
	// If the Product with product_id already exists, the fields
	// product_display_name, product_category and labels are ignored.
	//
	// If a Product doesn't exist and needs to be created on the fly, the
	// product_display_name field refers to [Product.display_name][google.cloud.vision.v1p3beta1.Product.display_name], the
	// product_category field refers to [Product.product_category][google.cloud.vision.v1p3beta1.Product.product_category], and the
	// labels field refers to [Product.labels][].
	//
	// Labels (optional) should be a line containing a list of comma-separated
	// key-value pairs, with the format
	//     "key_1=value_1,key_2=value_2,...,key_n=value_n".
	//
	// The bounding_poly (optional) field is used to identify one region of
	// interest from the image in the same manner as CreateReferenceImage. If no
	// bounding_poly is specified, the system will try to detect regions of
	// interest automatically.
	//
	// Note that the pipeline will resize the image if the image resolution is too
	// large to process (above 20MP).
	//
	// Also note that at most one bounding_poly is allowed per line. If the image
	// contains multiple regions of interest, the csv should contain one line per
	// region of interest.
	//
	// The bounding_poly column should contain an even number of comma-separated
	// numbers, with the format "p1_x,p1_y,p2_x,p2_y,...,pn_x,pn_y". Nonnegative
	// integers should be used for absolute bounding polygons, and float values
	// in [0, 1] should be used for normalized bounding polygons.
	CsvFileUri           string   `protobuf:"bytes,1,opt,name=csv_file_uri,json=csvFileUri,proto3" json:"csv_file_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The Google Cloud Storage location for a csv file which preserves a list of ImportProductSetRequests in each line.

func (*ImportProductSetsGcsSource) Descriptor

func (*ImportProductSetsGcsSource) Descriptor() ([]byte, []int)

func (*ImportProductSetsGcsSource) GetCsvFileUri

func (m *ImportProductSetsGcsSource) GetCsvFileUri() string

func (*ImportProductSetsGcsSource) ProtoMessage

func (*ImportProductSetsGcsSource) ProtoMessage()

func (*ImportProductSetsGcsSource) Reset

func (m *ImportProductSetsGcsSource) Reset()

func (*ImportProductSetsGcsSource) String

func (m *ImportProductSetsGcsSource) String() string

func (*ImportProductSetsGcsSource) XXX_DiscardUnknown

func (m *ImportProductSetsGcsSource) XXX_DiscardUnknown()

func (*ImportProductSetsGcsSource) XXX_Marshal

func (m *ImportProductSetsGcsSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportProductSetsGcsSource) XXX_Merge

func (m *ImportProductSetsGcsSource) XXX_Merge(src proto.Message)

func (*ImportProductSetsGcsSource) XXX_Size

func (m *ImportProductSetsGcsSource) XXX_Size() int

func (*ImportProductSetsGcsSource) XXX_Unmarshal

func (m *ImportProductSetsGcsSource) XXX_Unmarshal(b []byte) error

type ImportProductSetsInputConfig

type ImportProductSetsInputConfig struct {
	// The source of the input.
	//
	// Types that are valid to be assigned to Source:
	//	*ImportProductSetsInputConfig_GcsSource
	Source               isImportProductSetsInputConfig_Source `protobuf_oneof:"source"`
	XXX_NoUnkeyedLiteral struct{}                              `json:"-"`
	XXX_unrecognized     []byte                                `json:"-"`
	XXX_sizecache        int32                                 `json:"-"`
}

The input content for the `ImportProductSets` method.

func (*ImportProductSetsInputConfig) Descriptor

func (*ImportProductSetsInputConfig) Descriptor() ([]byte, []int)

func (*ImportProductSetsInputConfig) GetGcsSource

func (*ImportProductSetsInputConfig) GetSource

func (m *ImportProductSetsInputConfig) GetSource() isImportProductSetsInputConfig_Source

func (*ImportProductSetsInputConfig) ProtoMessage

func (*ImportProductSetsInputConfig) ProtoMessage()

func (*ImportProductSetsInputConfig) Reset

func (m *ImportProductSetsInputConfig) Reset()

func (*ImportProductSetsInputConfig) String

func (*ImportProductSetsInputConfig) XXX_DiscardUnknown

func (m *ImportProductSetsInputConfig) XXX_DiscardUnknown()

func (*ImportProductSetsInputConfig) XXX_Marshal

func (m *ImportProductSetsInputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportProductSetsInputConfig) XXX_Merge

func (m *ImportProductSetsInputConfig) XXX_Merge(src proto.Message)

func (*ImportProductSetsInputConfig) XXX_OneofFuncs

func (*ImportProductSetsInputConfig) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*ImportProductSetsInputConfig) XXX_Size

func (m *ImportProductSetsInputConfig) XXX_Size() int

func (*ImportProductSetsInputConfig) XXX_Unmarshal

func (m *ImportProductSetsInputConfig) XXX_Unmarshal(b []byte) error

type ImportProductSetsInputConfig_GcsSource

type ImportProductSetsInputConfig_GcsSource struct {
	GcsSource *ImportProductSetsGcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}

type ImportProductSetsRequest

type ImportProductSetsRequest struct {
	// The project in which the ProductSets should be imported.
	//
	// Format is `projects/PROJECT_ID/locations/LOC_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The input content for the list of requests.
	InputConfig          *ImportProductSetsInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

Request message for the `ImportProductSets` method.

func (*ImportProductSetsRequest) Descriptor

func (*ImportProductSetsRequest) Descriptor() ([]byte, []int)

func (*ImportProductSetsRequest) GetInputConfig

func (*ImportProductSetsRequest) GetParent

func (m *ImportProductSetsRequest) GetParent() string

func (*ImportProductSetsRequest) ProtoMessage

func (*ImportProductSetsRequest) ProtoMessage()

func (*ImportProductSetsRequest) Reset

func (m *ImportProductSetsRequest) Reset()

func (*ImportProductSetsRequest) String

func (m *ImportProductSetsRequest) String() string

func (*ImportProductSetsRequest) XXX_DiscardUnknown

func (m *ImportProductSetsRequest) XXX_DiscardUnknown()

func (*ImportProductSetsRequest) XXX_Marshal

func (m *ImportProductSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportProductSetsRequest) XXX_Merge

func (m *ImportProductSetsRequest) XXX_Merge(src proto.Message)

func (*ImportProductSetsRequest) XXX_Size

func (m *ImportProductSetsRequest) XXX_Size() int

func (*ImportProductSetsRequest) XXX_Unmarshal

func (m *ImportProductSetsRequest) XXX_Unmarshal(b []byte) error

type ImportProductSetsResponse

type ImportProductSetsResponse struct {
	// The list of reference_images that are imported successfully.
	ReferenceImages []*ReferenceImage `protobuf:"bytes,1,rep,name=reference_images,json=referenceImages,proto3" json:"reference_images,omitempty"`
	// The rpc status for each ImportProductSet request, including both successes
	// and errors.
	//
	// The number of statuses here matches the number of lines in the csv file,
	// and statuses[i] stores the success or failure status of processing the i-th
	// line of the csv, starting from line 0.
	Statuses             []*status.Status `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Response message for the `ImportProductSets` method.

This message is returned by the [google.longrunning.Operations.GetOperation][google.longrunning.Operations.GetOperation] method in the returned [google.longrunning.Operation.response][google.longrunning.Operation.response] field.

func (*ImportProductSetsResponse) Descriptor

func (*ImportProductSetsResponse) Descriptor() ([]byte, []int)

func (*ImportProductSetsResponse) GetReferenceImages

func (m *ImportProductSetsResponse) GetReferenceImages() []*ReferenceImage

func (*ImportProductSetsResponse) GetStatuses

func (m *ImportProductSetsResponse) GetStatuses() []*status.Status

func (*ImportProductSetsResponse) ProtoMessage

func (*ImportProductSetsResponse) ProtoMessage()

func (*ImportProductSetsResponse) Reset

func (m *ImportProductSetsResponse) Reset()

func (*ImportProductSetsResponse) String

func (m *ImportProductSetsResponse) String() string

func (*ImportProductSetsResponse) XXX_DiscardUnknown

func (m *ImportProductSetsResponse) XXX_DiscardUnknown()

func (*ImportProductSetsResponse) XXX_Marshal

func (m *ImportProductSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportProductSetsResponse) XXX_Merge

func (m *ImportProductSetsResponse) XXX_Merge(src proto.Message)

func (*ImportProductSetsResponse) XXX_Size

func (m *ImportProductSetsResponse) XXX_Size() int

func (*ImportProductSetsResponse) XXX_Unmarshal

func (m *ImportProductSetsResponse) XXX_Unmarshal(b []byte) error

type InputConfig

type InputConfig struct {
	// The Google Cloud Storage location to read the input from.
	GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3" json:"gcs_source,omitempty"`
	// The type of the file. Currently only "application/pdf" and "image/tiff"
	// are supported. Wildcards are not supported.
	MimeType             string   `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The desired input location and metadata.

func (*InputConfig) Descriptor

func (*InputConfig) Descriptor() ([]byte, []int)

func (*InputConfig) GetGcsSource

func (m *InputConfig) GetGcsSource() *GcsSource

func (*InputConfig) GetMimeType

func (m *InputConfig) GetMimeType() string

func (*InputConfig) ProtoMessage

func (*InputConfig) ProtoMessage()

func (*InputConfig) Reset

func (m *InputConfig) Reset()

func (*InputConfig) String

func (m *InputConfig) String() string

func (*InputConfig) XXX_DiscardUnknown

func (m *InputConfig) XXX_DiscardUnknown()

func (*InputConfig) XXX_Marshal

func (m *InputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InputConfig) XXX_Merge

func (m *InputConfig) XXX_Merge(src proto.Message)

func (*InputConfig) XXX_Size

func (m *InputConfig) XXX_Size() int

func (*InputConfig) XXX_Unmarshal

func (m *InputConfig) XXX_Unmarshal(b []byte) error

type LatLongRect

type LatLongRect struct {
	// Min lat/long pair.
	MinLatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=min_lat_lng,json=minLatLng,proto3" json:"min_lat_lng,omitempty"`
	// Max lat/long pair.
	MaxLatLng            *latlng.LatLng `protobuf:"bytes,2,opt,name=max_lat_lng,json=maxLatLng,proto3" json:"max_lat_lng,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Rectangle determined by min and max `LatLng` pairs.

func (*LatLongRect) Descriptor

func (*LatLongRect) Descriptor() ([]byte, []int)

func (*LatLongRect) GetMaxLatLng

func (m *LatLongRect) GetMaxLatLng() *latlng.LatLng

func (*LatLongRect) GetMinLatLng

func (m *LatLongRect) GetMinLatLng() *latlng.LatLng

func (*LatLongRect) ProtoMessage

func (*LatLongRect) ProtoMessage()

func (*LatLongRect) Reset

func (m *LatLongRect) Reset()

func (*LatLongRect) String

func (m *LatLongRect) String() string

func (*LatLongRect) XXX_DiscardUnknown

func (m *LatLongRect) XXX_DiscardUnknown()

func (*LatLongRect) XXX_Marshal

func (m *LatLongRect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LatLongRect) XXX_Merge

func (m *LatLongRect) XXX_Merge(src proto.Message)

func (*LatLongRect) XXX_Size

func (m *LatLongRect) XXX_Size() int

func (*LatLongRect) XXX_Unmarshal

func (m *LatLongRect) XXX_Unmarshal(b []byte) error

type Likelihood

type Likelihood int32

A bucketized representation of likelihood, which is intended to give clients highly stable results across model upgrades.

const (
	// Unknown likelihood.
	Likelihood_UNKNOWN Likelihood = 0
	// It is very unlikely that the image belongs to the specified vertical.
	Likelihood_VERY_UNLIKELY Likelihood = 1
	// It is unlikely that the image belongs to the specified vertical.
	Likelihood_UNLIKELY Likelihood = 2
	// It is possible that the image belongs to the specified vertical.
	Likelihood_POSSIBLE Likelihood = 3
	// It is likely that the image belongs to the specified vertical.
	Likelihood_LIKELY Likelihood = 4
	// It is very likely that the image belongs to the specified vertical.
	Likelihood_VERY_LIKELY Likelihood = 5
)

func (Likelihood) EnumDescriptor

func (Likelihood) EnumDescriptor() ([]byte, []int)

func (Likelihood) String

func (x Likelihood) String() string

type ListProductSetsRequest

type ListProductSetsRequest struct {
	// The project from which ProductSets should be listed.
	//
	// Format is `projects/PROJECT_ID/locations/LOC_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return. Default 10, maximum 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous List request, if any.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `ListProductSets` method.

func (*ListProductSetsRequest) Descriptor

func (*ListProductSetsRequest) Descriptor() ([]byte, []int)

func (*ListProductSetsRequest) GetPageSize

func (m *ListProductSetsRequest) GetPageSize() int32

func (*ListProductSetsRequest) GetPageToken

func (m *ListProductSetsRequest) GetPageToken() string

func (*ListProductSetsRequest) GetParent

func (m *ListProductSetsRequest) GetParent() string

func (*ListProductSetsRequest) ProtoMessage

func (*ListProductSetsRequest) ProtoMessage()

func (*ListProductSetsRequest) Reset

func (m *ListProductSetsRequest) Reset()

func (*ListProductSetsRequest) String

func (m *ListProductSetsRequest) String() string

func (*ListProductSetsRequest) XXX_DiscardUnknown

func (m *ListProductSetsRequest) XXX_DiscardUnknown()

func (*ListProductSetsRequest) XXX_Marshal

func (m *ListProductSetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductSetsRequest) XXX_Merge

func (m *ListProductSetsRequest) XXX_Merge(src proto.Message)

func (*ListProductSetsRequest) XXX_Size

func (m *ListProductSetsRequest) XXX_Size() int

func (*ListProductSetsRequest) XXX_Unmarshal

func (m *ListProductSetsRequest) XXX_Unmarshal(b []byte) error

type ListProductSetsResponse

type ListProductSetsResponse struct {
	// List of ProductSets.
	ProductSets []*ProductSet `protobuf:"bytes,1,rep,name=product_sets,json=productSets,proto3" json:"product_sets,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for the `ListProductSets` method.

func (*ListProductSetsResponse) Descriptor

func (*ListProductSetsResponse) Descriptor() ([]byte, []int)

func (*ListProductSetsResponse) GetNextPageToken

func (m *ListProductSetsResponse) GetNextPageToken() string

func (*ListProductSetsResponse) GetProductSets

func (m *ListProductSetsResponse) GetProductSets() []*ProductSet

func (*ListProductSetsResponse) ProtoMessage

func (*ListProductSetsResponse) ProtoMessage()

func (*ListProductSetsResponse) Reset

func (m *ListProductSetsResponse) Reset()

func (*ListProductSetsResponse) String

func (m *ListProductSetsResponse) String() string

func (*ListProductSetsResponse) XXX_DiscardUnknown

func (m *ListProductSetsResponse) XXX_DiscardUnknown()

func (*ListProductSetsResponse) XXX_Marshal

func (m *ListProductSetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductSetsResponse) XXX_Merge

func (m *ListProductSetsResponse) XXX_Merge(src proto.Message)

func (*ListProductSetsResponse) XXX_Size

func (m *ListProductSetsResponse) XXX_Size() int

func (*ListProductSetsResponse) XXX_Unmarshal

func (m *ListProductSetsResponse) XXX_Unmarshal(b []byte) error

type ListProductsInProductSetRequest

type ListProductsInProductSetRequest struct {
	// The ProductSet resource for which to retrieve Products.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The maximum number of items to return. Default 10, maximum 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous List request, if any.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetRequest) Descriptor

func (*ListProductsInProductSetRequest) Descriptor() ([]byte, []int)

func (*ListProductsInProductSetRequest) GetName

func (*ListProductsInProductSetRequest) GetPageSize

func (m *ListProductsInProductSetRequest) GetPageSize() int32

func (*ListProductsInProductSetRequest) GetPageToken

func (m *ListProductsInProductSetRequest) GetPageToken() string

func (*ListProductsInProductSetRequest) ProtoMessage

func (*ListProductsInProductSetRequest) ProtoMessage()

func (*ListProductsInProductSetRequest) Reset

func (*ListProductsInProductSetRequest) String

func (*ListProductsInProductSetRequest) XXX_DiscardUnknown

func (m *ListProductsInProductSetRequest) XXX_DiscardUnknown()

func (*ListProductsInProductSetRequest) XXX_Marshal

func (m *ListProductsInProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductsInProductSetRequest) XXX_Merge

func (m *ListProductsInProductSetRequest) XXX_Merge(src proto.Message)

func (*ListProductsInProductSetRequest) XXX_Size

func (m *ListProductsInProductSetRequest) XXX_Size() int

func (*ListProductsInProductSetRequest) XXX_Unmarshal

func (m *ListProductsInProductSetRequest) XXX_Unmarshal(b []byte) error

type ListProductsInProductSetResponse

type ListProductsInProductSetResponse struct {
	// The list of Products.
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetResponse) Descriptor

func (*ListProductsInProductSetResponse) Descriptor() ([]byte, []int)

func (*ListProductsInProductSetResponse) GetNextPageToken

func (m *ListProductsInProductSetResponse) GetNextPageToken() string

func (*ListProductsInProductSetResponse) GetProducts

func (m *ListProductsInProductSetResponse) GetProducts() []*Product

func (*ListProductsInProductSetResponse) ProtoMessage

func (*ListProductsInProductSetResponse) ProtoMessage()

func (*ListProductsInProductSetResponse) Reset

func (*ListProductsInProductSetResponse) String

func (*ListProductsInProductSetResponse) XXX_DiscardUnknown

func (m *ListProductsInProductSetResponse) XXX_DiscardUnknown()

func (*ListProductsInProductSetResponse) XXX_Marshal

func (m *ListProductsInProductSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductsInProductSetResponse) XXX_Merge

func (*ListProductsInProductSetResponse) XXX_Size

func (m *ListProductsInProductSetResponse) XXX_Size() int

func (*ListProductsInProductSetResponse) XXX_Unmarshal

func (m *ListProductsInProductSetResponse) XXX_Unmarshal(b []byte) error

type ListProductsRequest

type ListProductsRequest struct {
	// The project OR ProductSet from which Products should be listed.
	//
	// Format:
	// `projects/PROJECT_ID/locations/LOC_ID`
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return. Default 10, maximum 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous List request, if any.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `ListProducts` method.

func (*ListProductsRequest) Descriptor

func (*ListProductsRequest) Descriptor() ([]byte, []int)

func (*ListProductsRequest) GetPageSize

func (m *ListProductsRequest) GetPageSize() int32

func (*ListProductsRequest) GetPageToken

func (m *ListProductsRequest) GetPageToken() string

func (*ListProductsRequest) GetParent

func (m *ListProductsRequest) GetParent() string

func (*ListProductsRequest) ProtoMessage

func (*ListProductsRequest) ProtoMessage()

func (*ListProductsRequest) Reset

func (m *ListProductsRequest) Reset()

func (*ListProductsRequest) String

func (m *ListProductsRequest) String() string

func (*ListProductsRequest) XXX_DiscardUnknown

func (m *ListProductsRequest) XXX_DiscardUnknown()

func (*ListProductsRequest) XXX_Marshal

func (m *ListProductsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductsRequest) XXX_Merge

func (m *ListProductsRequest) XXX_Merge(src proto.Message)

func (*ListProductsRequest) XXX_Size

func (m *ListProductsRequest) XXX_Size() int

func (*ListProductsRequest) XXX_Unmarshal

func (m *ListProductsRequest) XXX_Unmarshal(b []byte) error

type ListProductsResponse

type ListProductsResponse struct {
	// List of products.
	Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
	// Token to retrieve the next page of results, or empty if there are no more
	// results in the list.
	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for the `ListProducts` method.

func (*ListProductsResponse) Descriptor

func (*ListProductsResponse) Descriptor() ([]byte, []int)

func (*ListProductsResponse) GetNextPageToken

func (m *ListProductsResponse) GetNextPageToken() string

func (*ListProductsResponse) GetProducts

func (m *ListProductsResponse) GetProducts() []*Product

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) Reset

func (m *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (m *ListProductsResponse) String() string

func (*ListProductsResponse) XXX_DiscardUnknown

func (m *ListProductsResponse) XXX_DiscardUnknown()

func (*ListProductsResponse) XXX_Marshal

func (m *ListProductsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListProductsResponse) XXX_Merge

func (m *ListProductsResponse) XXX_Merge(src proto.Message)

func (*ListProductsResponse) XXX_Size

func (m *ListProductsResponse) XXX_Size() int

func (*ListProductsResponse) XXX_Unmarshal

func (m *ListProductsResponse) XXX_Unmarshal(b []byte) error

type ListReferenceImagesRequest

type ListReferenceImagesRequest struct {
	// Resource name of the product containing the reference images.
	//
	// Format is
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of items to return. Default 10, maximum 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// A token identifying a page of results to be returned. This is the value
	// of `nextPageToken` returned in a previous reference image list request.
	//
	// Defaults to the first page if not specified.
	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `ListReferenceImages` method.

func (*ListReferenceImagesRequest) Descriptor

func (*ListReferenceImagesRequest) Descriptor() ([]byte, []int)

func (*ListReferenceImagesRequest) GetPageSize

func (m *ListReferenceImagesRequest) GetPageSize() int32

func (*ListReferenceImagesRequest) GetPageToken

func (m *ListReferenceImagesRequest) GetPageToken() string

func (*ListReferenceImagesRequest) GetParent

func (m *ListReferenceImagesRequest) GetParent() string

func (*ListReferenceImagesRequest) ProtoMessage

func (*ListReferenceImagesRequest) ProtoMessage()

func (*ListReferenceImagesRequest) Reset

func (m *ListReferenceImagesRequest) Reset()

func (*ListReferenceImagesRequest) String

func (m *ListReferenceImagesRequest) String() string

func (*ListReferenceImagesRequest) XXX_DiscardUnknown

func (m *ListReferenceImagesRequest) XXX_DiscardUnknown()

func (*ListReferenceImagesRequest) XXX_Marshal

func (m *ListReferenceImagesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListReferenceImagesRequest) XXX_Merge

func (m *ListReferenceImagesRequest) XXX_Merge(src proto.Message)

func (*ListReferenceImagesRequest) XXX_Size

func (m *ListReferenceImagesRequest) XXX_Size() int

func (*ListReferenceImagesRequest) XXX_Unmarshal

func (m *ListReferenceImagesRequest) XXX_Unmarshal(b []byte) error

type ListReferenceImagesResponse

type ListReferenceImagesResponse struct {
	// The list of reference images.
	ReferenceImages []*ReferenceImage `protobuf:"bytes,1,rep,name=reference_images,json=referenceImages,proto3" json:"reference_images,omitempty"`
	// The maximum number of items to return. Default 10, maximum 100.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token returned from a previous List request, if any.
	NextPageToken        string   `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response message for the `ListReferenceImages` method.

func (*ListReferenceImagesResponse) Descriptor

func (*ListReferenceImagesResponse) Descriptor() ([]byte, []int)

func (*ListReferenceImagesResponse) GetNextPageToken

func (m *ListReferenceImagesResponse) GetNextPageToken() string

func (*ListReferenceImagesResponse) GetPageSize

func (m *ListReferenceImagesResponse) GetPageSize() int32

func (*ListReferenceImagesResponse) GetReferenceImages

func (m *ListReferenceImagesResponse) GetReferenceImages() []*ReferenceImage

func (*ListReferenceImagesResponse) ProtoMessage

func (*ListReferenceImagesResponse) ProtoMessage()

func (*ListReferenceImagesResponse) Reset

func (m *ListReferenceImagesResponse) Reset()

func (*ListReferenceImagesResponse) String

func (m *ListReferenceImagesResponse) String() string

func (*ListReferenceImagesResponse) XXX_DiscardUnknown

func (m *ListReferenceImagesResponse) XXX_DiscardUnknown()

func (*ListReferenceImagesResponse) XXX_Marshal

func (m *ListReferenceImagesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListReferenceImagesResponse) XXX_Merge

func (m *ListReferenceImagesResponse) XXX_Merge(src proto.Message)

func (*ListReferenceImagesResponse) XXX_Size

func (m *ListReferenceImagesResponse) XXX_Size() int

func (*ListReferenceImagesResponse) XXX_Unmarshal

func (m *ListReferenceImagesResponse) XXX_Unmarshal(b []byte) error

type LocalizedObjectAnnotation

type LocalizedObjectAnnotation struct {
	// Object ID that should align with EntityAnnotation mid.
	Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"`
	// 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,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Object name, expressed in its `language_code` language.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Score of the result. Range [0, 1].
	Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"`
	// Image region to which this object belongs. This must be populated.
	BoundingPoly         *BoundingPoly `protobuf:"bytes,5,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Set of detected objects with bounding boxes.

func (*LocalizedObjectAnnotation) Descriptor

func (*LocalizedObjectAnnotation) Descriptor() ([]byte, []int)

func (*LocalizedObjectAnnotation) GetBoundingPoly

func (m *LocalizedObjectAnnotation) GetBoundingPoly() *BoundingPoly

func (*LocalizedObjectAnnotation) GetLanguageCode

func (m *LocalizedObjectAnnotation) GetLanguageCode() string

func (*LocalizedObjectAnnotation) GetMid

func (m *LocalizedObjectAnnotation) GetMid() string

func (*LocalizedObjectAnnotation) GetName

func (m *LocalizedObjectAnnotation) GetName() string

func (*LocalizedObjectAnnotation) GetScore

func (m *LocalizedObjectAnnotation) GetScore() float32

func (*LocalizedObjectAnnotation) ProtoMessage

func (*LocalizedObjectAnnotation) ProtoMessage()

func (*LocalizedObjectAnnotation) Reset

func (m *LocalizedObjectAnnotation) Reset()

func (*LocalizedObjectAnnotation) String

func (m *LocalizedObjectAnnotation) String() string

func (*LocalizedObjectAnnotation) XXX_DiscardUnknown

func (m *LocalizedObjectAnnotation) XXX_DiscardUnknown()

func (*LocalizedObjectAnnotation) XXX_Marshal

func (m *LocalizedObjectAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocalizedObjectAnnotation) XXX_Merge

func (m *LocalizedObjectAnnotation) XXX_Merge(src proto.Message)

func (*LocalizedObjectAnnotation) XXX_Size

func (m *LocalizedObjectAnnotation) XXX_Size() int

func (*LocalizedObjectAnnotation) XXX_Unmarshal

func (m *LocalizedObjectAnnotation) XXX_Unmarshal(b []byte) error

type LocationInfo

type LocationInfo struct {
	// lat/long location coordinates.
	LatLng               *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Detected entity location information.

func (*LocationInfo) Descriptor

func (*LocationInfo) Descriptor() ([]byte, []int)

func (*LocationInfo) GetLatLng

func (m *LocationInfo) GetLatLng() *latlng.LatLng

func (*LocationInfo) ProtoMessage

func (*LocationInfo) ProtoMessage()

func (*LocationInfo) Reset

func (m *LocationInfo) Reset()

func (*LocationInfo) String

func (m *LocationInfo) String() string

func (*LocationInfo) XXX_DiscardUnknown

func (m *LocationInfo) XXX_DiscardUnknown()

func (*LocationInfo) XXX_Marshal

func (m *LocationInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LocationInfo) XXX_Merge

func (m *LocationInfo) XXX_Merge(src proto.Message)

func (*LocationInfo) XXX_Size

func (m *LocationInfo) XXX_Size() int

func (*LocationInfo) XXX_Unmarshal

func (m *LocationInfo) XXX_Unmarshal(b []byte) error

type NormalizedBoundingPoly

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:"-"`
}

A normalized bounding polygon around a portion of an image.

func (*NormalizedBoundingPoly) Descriptor

func (*NormalizedBoundingPoly) Descriptor() ([]byte, []int)

func (*NormalizedBoundingPoly) GetVertices

func (m *NormalizedBoundingPoly) GetVertices() []*NormalizedVertex

func (*NormalizedBoundingPoly) ProtoMessage

func (*NormalizedBoundingPoly) ProtoMessage()

func (*NormalizedBoundingPoly) Reset

func (m *NormalizedBoundingPoly) Reset()

func (*NormalizedBoundingPoly) String

func (m *NormalizedBoundingPoly) String() string

func (*NormalizedBoundingPoly) XXX_DiscardUnknown

func (m *NormalizedBoundingPoly) XXX_DiscardUnknown()

func (*NormalizedBoundingPoly) XXX_Marshal

func (m *NormalizedBoundingPoly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NormalizedBoundingPoly) XXX_Merge

func (m *NormalizedBoundingPoly) XXX_Merge(src proto.Message)

func (*NormalizedBoundingPoly) XXX_Size

func (m *NormalizedBoundingPoly) XXX_Size() int

func (*NormalizedBoundingPoly) XXX_Unmarshal

func (m *NormalizedBoundingPoly) XXX_Unmarshal(b []byte) error

type NormalizedVertex

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:"-"`
}

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.

func (*NormalizedVertex) Descriptor

func (*NormalizedVertex) Descriptor() ([]byte, []int)

func (*NormalizedVertex) GetX

func (m *NormalizedVertex) GetX() float32

func (*NormalizedVertex) GetY

func (m *NormalizedVertex) GetY() float32

func (*NormalizedVertex) ProtoMessage

func (*NormalizedVertex) ProtoMessage()

func (*NormalizedVertex) Reset

func (m *NormalizedVertex) Reset()

func (*NormalizedVertex) String

func (m *NormalizedVertex) String() string

func (*NormalizedVertex) XXX_DiscardUnknown

func (m *NormalizedVertex) XXX_DiscardUnknown()

func (*NormalizedVertex) XXX_Marshal

func (m *NormalizedVertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NormalizedVertex) XXX_Merge

func (m *NormalizedVertex) XXX_Merge(src proto.Message)

func (*NormalizedVertex) XXX_Size

func (m *NormalizedVertex) XXX_Size() int

func (*NormalizedVertex) XXX_Unmarshal

func (m *NormalizedVertex) XXX_Unmarshal(b []byte) error

type OperationMetadata

type OperationMetadata struct {
	// Current state of the batch operation.
	State OperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.vision.v1p3beta1.OperationMetadata_State" json:"state,omitempty"`
	// The time when the batch request was received.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// The time when the operation result was last updated.
	UpdateTime           *timestamp.Timestamp `protobuf:"bytes,6,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

Contains metadata for the BatchAnnotateImages operation.

func (*OperationMetadata) Descriptor

func (*OperationMetadata) Descriptor() ([]byte, []int)

func (*OperationMetadata) GetCreateTime

func (m *OperationMetadata) GetCreateTime() *timestamp.Timestamp

func (*OperationMetadata) GetState

func (*OperationMetadata) GetUpdateTime

func (m *OperationMetadata) GetUpdateTime() *timestamp.Timestamp

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) Reset

func (m *OperationMetadata) Reset()

func (*OperationMetadata) String

func (m *OperationMetadata) String() string

func (*OperationMetadata) XXX_DiscardUnknown

func (m *OperationMetadata) XXX_DiscardUnknown()

func (*OperationMetadata) XXX_Marshal

func (m *OperationMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OperationMetadata) XXX_Merge

func (m *OperationMetadata) XXX_Merge(src proto.Message)

func (*OperationMetadata) XXX_Size

func (m *OperationMetadata) XXX_Size() int

func (*OperationMetadata) XXX_Unmarshal

func (m *OperationMetadata) XXX_Unmarshal(b []byte) error

type OperationMetadata_State

type OperationMetadata_State int32

Batch operation states.

const (
	// Invalid.
	OperationMetadata_STATE_UNSPECIFIED OperationMetadata_State = 0
	// Request is received.
	OperationMetadata_CREATED OperationMetadata_State = 1
	// Request is actively being processed.
	OperationMetadata_RUNNING OperationMetadata_State = 2
	// The batch processing is done.
	OperationMetadata_DONE OperationMetadata_State = 3
	// The batch processing was cancelled.
	OperationMetadata_CANCELLED OperationMetadata_State = 4
)

func (OperationMetadata_State) EnumDescriptor

func (OperationMetadata_State) EnumDescriptor() ([]byte, []int)

func (OperationMetadata_State) String

func (x OperationMetadata_State) String() string

type OutputConfig

type OutputConfig struct {
	// The Google Cloud Storage location to write the output(s) to.
	GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3" json:"gcs_destination,omitempty"`
	// The max number of response protos to put into each output JSON file on
	// Google Cloud Storage.
	// The valid range is [1, 100]. If not specified, the default value is 20.
	//
	// For example, for one pdf file with 100 pages, 100 response protos will
	// be generated. If `batch_size` = 20, then 5 json files each
	// containing 20 response protos will be written under the prefix
	// `gcs_destination`.`uri`.
	//
	// Currently, batch_size only applies to GcsDestination, with potential future
	// support for other output configurations.
	BatchSize            int32    `protobuf:"varint,2,opt,name=batch_size,json=batchSize,proto3" json:"batch_size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

The desired output location and metadata.

func (*OutputConfig) Descriptor

func (*OutputConfig) Descriptor() ([]byte, []int)

func (*OutputConfig) GetBatchSize

func (m *OutputConfig) GetBatchSize() int32

func (*OutputConfig) GetGcsDestination

func (m *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) Reset

func (m *OutputConfig) Reset()

func (*OutputConfig) String

func (m *OutputConfig) String() string

func (*OutputConfig) XXX_DiscardUnknown

func (m *OutputConfig) XXX_DiscardUnknown()

func (*OutputConfig) XXX_Marshal

func (m *OutputConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OutputConfig) XXX_Merge

func (m *OutputConfig) XXX_Merge(src proto.Message)

func (*OutputConfig) XXX_Size

func (m *OutputConfig) XXX_Size() int

func (*OutputConfig) XXX_Unmarshal

func (m *OutputConfig) XXX_Unmarshal(b []byte) error

type Page

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:"-"`
}

Detected page from OCR.

func (*Page) Descriptor

func (*Page) Descriptor() ([]byte, []int)

func (*Page) GetBlocks

func (m *Page) GetBlocks() []*Block

func (*Page) GetConfidence

func (m *Page) GetConfidence() float32

func (*Page) GetHeight

func (m *Page) GetHeight() int32

func (*Page) GetProperty

func (m *Page) GetProperty() *TextAnnotation_TextProperty

func (*Page) GetWidth

func (m *Page) GetWidth() int32

func (*Page) ProtoMessage

func (*Page) ProtoMessage()

func (*Page) Reset

func (m *Page) Reset()

func (*Page) String

func (m *Page) String() string

func (*Page) XXX_DiscardUnknown

func (m *Page) XXX_DiscardUnknown()

func (*Page) XXX_Marshal

func (m *Page) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Page) XXX_Merge

func (m *Page) XXX_Merge(src proto.Message)

func (*Page) XXX_Size

func (m *Page) XXX_Size() int

func (*Page) XXX_Unmarshal

func (m *Page) XXX_Unmarshal(b []byte) error

type Paragraph

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:"-"`
}

Structural unit of text representing a number of words in certain order.

func (*Paragraph) Descriptor

func (*Paragraph) Descriptor() ([]byte, []int)

func (*Paragraph) GetBoundingBox

func (m *Paragraph) GetBoundingBox() *BoundingPoly

func (*Paragraph) GetConfidence

func (m *Paragraph) GetConfidence() float32

func (*Paragraph) GetProperty

func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty

func (*Paragraph) GetWords

func (m *Paragraph) GetWords() []*Word

func (*Paragraph) ProtoMessage

func (*Paragraph) ProtoMessage()

func (*Paragraph) Reset

func (m *Paragraph) Reset()

func (*Paragraph) String

func (m *Paragraph) String() string

func (*Paragraph) XXX_DiscardUnknown

func (m *Paragraph) XXX_DiscardUnknown()

func (*Paragraph) XXX_Marshal

func (m *Paragraph) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Paragraph) XXX_Merge

func (m *Paragraph) XXX_Merge(src proto.Message)

func (*Paragraph) XXX_Size

func (m *Paragraph) XXX_Size() int

func (*Paragraph) XXX_Unmarshal

func (m *Paragraph) XXX_Unmarshal(b []byte) error

type Position

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:"-"`
}

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.

func (*Position) Descriptor

func (*Position) Descriptor() ([]byte, []int)

func (*Position) GetX

func (m *Position) GetX() float32

func (*Position) GetY

func (m *Position) GetY() float32

func (*Position) GetZ

func (m *Position) GetZ() float32

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

func (*Position) XXX_DiscardUnknown

func (m *Position) XXX_DiscardUnknown()

func (*Position) XXX_Marshal

func (m *Position) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Position) XXX_Merge

func (m *Position) XXX_Merge(src proto.Message)

func (*Position) XXX_Size

func (m *Position) XXX_Size() int

func (*Position) XXX_Unmarshal

func (m *Position) XXX_Unmarshal(b []byte) error

type Product

type Product struct {
	// The resource name of the product.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
	//
	// This field is ignored when creating a product.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The user-provided name for this Product. Must not be empty. Must be at most
	// 4096 characters long.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// User-provided metadata to be stored with this product. Must be at most 4096
	// characters long.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// The category for the product identified by the reference image. This should
	// be either "homegoods" or "apparel".
	//
	// This field is immutable.
	ProductCategory string `protobuf:"bytes,4,opt,name=product_category,json=productCategory,proto3" json:"product_category,omitempty"`
	// Key-value pairs that can be attached to a product. At query time,
	// constraints can be specified based on the product_labels.
	//
	// Note that integer values can be provided as strings, e.g. "1199". Only
	// strings with integer values can match a range-based restriction which is
	// to be supported soon.
	//
	// Multiple values can be assigned to the same key. One product may have up to
	// 100 product_labels.
	ProductLabels        []*Product_KeyValue `protobuf:"bytes,5,rep,name=product_labels,json=productLabels,proto3" json:"product_labels,omitempty"`
	XXX_NoUnkeyedLiteral struct{}            `json:"-"`
	XXX_unrecognized     []byte              `json:"-"`
	XXX_sizecache        int32               `json:"-"`
}

A Product contains ReferenceImages.

func (*Product) Descriptor

func (*Product) Descriptor() ([]byte, []int)

func (*Product) GetDescription

func (m *Product) GetDescription() string

func (*Product) GetDisplayName

func (m *Product) GetDisplayName() string

func (*Product) GetName

func (m *Product) GetName() string

func (*Product) GetProductCategory

func (m *Product) GetProductCategory() string

func (*Product) GetProductLabels

func (m *Product) GetProductLabels() []*Product_KeyValue

func (*Product) ProtoMessage

func (*Product) ProtoMessage()

func (*Product) Reset

func (m *Product) Reset()

func (*Product) String

func (m *Product) String() string

func (*Product) XXX_DiscardUnknown

func (m *Product) XXX_DiscardUnknown()

func (*Product) XXX_Marshal

func (m *Product) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product) XXX_Merge

func (m *Product) XXX_Merge(src proto.Message)

func (*Product) XXX_Size

func (m *Product) XXX_Size() int

func (*Product) XXX_Unmarshal

func (m *Product) XXX_Unmarshal(b []byte) error

type ProductSearchCategory

type ProductSearchCategory int32

Supported product search categories.

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
)

func (ProductSearchCategory) EnumDescriptor

func (ProductSearchCategory) EnumDescriptor() ([]byte, []int)

func (ProductSearchCategory) String

func (x ProductSearchCategory) String() string

type ProductSearchClient

type ProductSearchClient interface {
	// Creates and returns a new ProductSet resource.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
	//   4096 characters.
	CreateProductSet(ctx context.Context, in *CreateProductSetRequest, opts ...grpc.CallOption) (*ProductSet, error)
	// Lists ProductSets in an unspecified order.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
	//   than 1.
	ListProductSets(ctx context.Context, in *ListProductSetsRequest, opts ...grpc.CallOption) (*ListProductSetsResponse, error)
	// Gets information associated with a ProductSet.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	GetProductSet(ctx context.Context, in *GetProductSetRequest, opts ...grpc.CallOption) (*ProductSet, error)
	// Makes changes to a ProductSet resource.
	// Only display_name can be updated currently.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	// * Returns INVALID_ARGUMENT if display_name is present in update_mask but
	//   missing from the request or longer than 4096 characters.
	UpdateProductSet(ctx context.Context, in *UpdateProductSetRequest, opts ...grpc.CallOption) (*ProductSet, error)
	// Permanently deletes a ProductSet. All Products and ReferenceImages in the
	// ProductSet will be deleted.
	//
	// The actual image files are not deleted from Google Cloud Storage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	DeleteProductSet(ctx context.Context, in *DeleteProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Creates and returns a new product resource.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
	//   characters.
	// * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if product_category is missing or invalid.
	CreateProduct(ctx context.Context, in *CreateProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Lists products in an unspecified order.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
	ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error)
	// Gets information associated with a Product.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product does not exist.
	GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Makes changes to a Product resource.
	// Only display_name, description and labels can be updated right now.
	//
	// If labels are updated, the change will not be reflected in queries until
	// the next index time.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product does not exist.
	// * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
	//   missing from the request or longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if description is present in update_mask but is
	//   longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if product_category is present in update_mask.
	UpdateProduct(ctx context.Context, in *UpdateProductRequest, opts ...grpc.CallOption) (*Product, error)
	// Permanently deletes a product and its reference images.
	//
	// Metadata of the product and all its images will be deleted right away, but
	// search queries against ProductSets containing the product may still work
	// until all related caches are refreshed.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the product does not exist.
	DeleteProduct(ctx context.Context, in *DeleteProductRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Creates and returns a new ReferenceImage resource.
	//
	// The `bounding_poly` field is optional. If `bounding_poly` is not specified,
	// the system will try to detect regions of interest in the image that are
	// compatible with the product_category on the parent product. If it is
	// specified, detection is ALWAYS skipped. The system converts polygons into
	// non-rotated rectangles.
	//
	// Note that the pipeline will resize the image if the image resolution is too
	// large to process (above 50MP).
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
	//   characters.
	// * Returns INVALID_ARGUMENT if the product does not exist.
	// * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
	//   compatible with the parent product's product_category is detected.
	// * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
	CreateReferenceImage(ctx context.Context, in *CreateReferenceImageRequest, opts ...grpc.CallOption) (*ReferenceImage, error)
	// Permanently deletes a reference image.
	//
	// The image metadata will be deleted right away, but search queries
	// against ProductSets containing the image may still work until all related
	// caches are refreshed.
	//
	// The actual image files are not deleted from Google Cloud Storage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the reference image does not exist.
	DeleteReferenceImage(ctx context.Context, in *DeleteReferenceImageRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists reference images.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the parent product does not exist.
	// * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
	//   than 1.
	ListReferenceImages(ctx context.Context, in *ListReferenceImagesRequest, opts ...grpc.CallOption) (*ListReferenceImagesResponse, error)
	// Gets information associated with a ReferenceImage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the specified image does not exist.
	GetReferenceImage(ctx context.Context, in *GetReferenceImageRequest, opts ...grpc.CallOption) (*ReferenceImage, error)
	// Adds a Product to the specified ProductSet. If the Product is already
	// present, no change is made.
	//
	// One Product can be added to at most 100 ProductSets.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
	AddProductToProductSet(ctx context.Context, in *AddProductToProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Removes a Product from the specified ProductSet.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND If the Product is not found under the ProductSet.
	RemoveProductFromProductSet(ctx context.Context, in *RemoveProductFromProductSetRequest, opts ...grpc.CallOption) (*empty.Empty, error)
	// Lists the Products in a ProductSet, in an unspecified order. If the
	// ProductSet does not exist, the products field of the response will be
	// empty.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
	ListProductsInProductSet(ctx context.Context, in *ListProductsInProductSetRequest, opts ...grpc.CallOption) (*ListProductsInProductSetResponse, error)
	// Asynchronous API that imports a list of reference images to specified
	// product sets based on a list of image information.
	//
	// The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the
	// progress and results of the request.
	// `Operation.metadata` contains `BatchOperationMetadata`. (progress)
	// `Operation.response` contains `ImportProductSetsResponse`. (results)
	//
	// The input source of this method is a csv file on Google Cloud Storage.
	// For the format of the csv file please see
	// [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
	ImportProductSets(ctx context.Context, in *ImportProductSetsRequest, opts ...grpc.CallOption) (*longrunning.Operation, error)
}

ProductSearchClient is the client API for ProductSearch service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewProductSearchClient

func NewProductSearchClient(cc *grpc.ClientConn) ProductSearchClient

type ProductSearchParams

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 `` /* 127-byte string literal not displayed */
	// 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 `` /* 129-byte string literal not displayed */
	// 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:"-"`
}

Parameters for a product search request.

func (*ProductSearchParams) Descriptor

func (*ProductSearchParams) Descriptor() ([]byte, []int)

func (*ProductSearchParams) GetBoundingPoly

func (m *ProductSearchParams) GetBoundingPoly() *BoundingPoly

func (*ProductSearchParams) GetCatalogName

func (m *ProductSearchParams) GetCatalogName() string

func (*ProductSearchParams) GetCategory

func (m *ProductSearchParams) GetCategory() ProductSearchCategory

func (*ProductSearchParams) GetFilter

func (m *ProductSearchParams) GetFilter() string

func (*ProductSearchParams) GetNormalizedBoundingPoly

func (m *ProductSearchParams) GetNormalizedBoundingPoly() *NormalizedBoundingPoly

func (*ProductSearchParams) GetProductCategories

func (m *ProductSearchParams) GetProductCategories() []string

func (*ProductSearchParams) GetProductCategory

func (m *ProductSearchParams) GetProductCategory() string

func (*ProductSearchParams) GetProductSet

func (m *ProductSearchParams) GetProductSet() string

func (*ProductSearchParams) GetView

func (*ProductSearchParams) ProtoMessage

func (*ProductSearchParams) ProtoMessage()

func (*ProductSearchParams) Reset

func (m *ProductSearchParams) Reset()

func (*ProductSearchParams) String

func (m *ProductSearchParams) String() string

func (*ProductSearchParams) XXX_DiscardUnknown

func (m *ProductSearchParams) XXX_DiscardUnknown()

func (*ProductSearchParams) XXX_Marshal

func (m *ProductSearchParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductSearchParams) XXX_Merge

func (m *ProductSearchParams) XXX_Merge(src proto.Message)

func (*ProductSearchParams) XXX_Size

func (m *ProductSearchParams) XXX_Size() int

func (*ProductSearchParams) XXX_Unmarshal

func (m *ProductSearchParams) XXX_Unmarshal(b []byte) error

type ProductSearchResults

type ProductSearchResults struct {
	// Product category.
	// [Deprecated] Use `product_category`.
	Category ProductSearchCategory `` /* 127-byte string literal not displayed */
	// 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:"-"`
}

Results for a product search request.

func (*ProductSearchResults) Descriptor

func (*ProductSearchResults) Descriptor() ([]byte, []int)

func (*ProductSearchResults) GetCategory

func (*ProductSearchResults) GetIndexTime

func (m *ProductSearchResults) GetIndexTime() *timestamp.Timestamp

func (*ProductSearchResults) GetProductCategory

func (m *ProductSearchResults) GetProductCategory() string

func (*ProductSearchResults) GetProducts

func (*ProductSearchResults) GetResults

func (*ProductSearchResults) ProtoMessage

func (*ProductSearchResults) ProtoMessage()

func (*ProductSearchResults) Reset

func (m *ProductSearchResults) Reset()

func (*ProductSearchResults) String

func (m *ProductSearchResults) String() string

func (*ProductSearchResults) XXX_DiscardUnknown

func (m *ProductSearchResults) XXX_DiscardUnknown()

func (*ProductSearchResults) XXX_Marshal

func (m *ProductSearchResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductSearchResults) XXX_Merge

func (m *ProductSearchResults) XXX_Merge(src proto.Message)

func (*ProductSearchResults) XXX_Size

func (m *ProductSearchResults) XXX_Size() int

func (*ProductSearchResults) XXX_Unmarshal

func (m *ProductSearchResults) XXX_Unmarshal(b []byte) error

type ProductSearchResultsView

type ProductSearchResultsView int32

Specifies the fields to include in product search results.

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
)

func (ProductSearchResultsView) EnumDescriptor

func (ProductSearchResultsView) EnumDescriptor() ([]byte, []int)

func (ProductSearchResultsView) String

func (x ProductSearchResultsView) String() string

type ProductSearchResults_ProductInfo

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:"-"`
}

Information about a product.

func (*ProductSearchResults_ProductInfo) Descriptor

func (*ProductSearchResults_ProductInfo) Descriptor() ([]byte, []int)

func (*ProductSearchResults_ProductInfo) GetImageUri

func (m *ProductSearchResults_ProductInfo) GetImageUri() string

func (*ProductSearchResults_ProductInfo) GetProductId

func (m *ProductSearchResults_ProductInfo) GetProductId() string

func (*ProductSearchResults_ProductInfo) GetScore

func (*ProductSearchResults_ProductInfo) ProtoMessage

func (*ProductSearchResults_ProductInfo) ProtoMessage()

func (*ProductSearchResults_ProductInfo) Reset

func (*ProductSearchResults_ProductInfo) String

func (*ProductSearchResults_ProductInfo) XXX_DiscardUnknown

func (m *ProductSearchResults_ProductInfo) XXX_DiscardUnknown()

func (*ProductSearchResults_ProductInfo) XXX_Marshal

func (m *ProductSearchResults_ProductInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductSearchResults_ProductInfo) XXX_Merge

func (*ProductSearchResults_ProductInfo) XXX_Size

func (m *ProductSearchResults_ProductInfo) XXX_Size() int

func (*ProductSearchResults_ProductInfo) XXX_Unmarshal

func (m *ProductSearchResults_ProductInfo) XXX_Unmarshal(b []byte) error

type ProductSearchResults_Result

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:"-"`
}

Information about a product.

func (*ProductSearchResults_Result) Descriptor

func (*ProductSearchResults_Result) Descriptor() ([]byte, []int)

func (*ProductSearchResults_Result) GetImage

func (m *ProductSearchResults_Result) GetImage() string

func (*ProductSearchResults_Result) GetProduct

func (m *ProductSearchResults_Result) GetProduct() *Product

func (*ProductSearchResults_Result) GetScore

func (m *ProductSearchResults_Result) GetScore() float32

func (*ProductSearchResults_Result) ProtoMessage

func (*ProductSearchResults_Result) ProtoMessage()

func (*ProductSearchResults_Result) Reset

func (m *ProductSearchResults_Result) Reset()

func (*ProductSearchResults_Result) String

func (m *ProductSearchResults_Result) String() string

func (*ProductSearchResults_Result) XXX_DiscardUnknown

func (m *ProductSearchResults_Result) XXX_DiscardUnknown()

func (*ProductSearchResults_Result) XXX_Marshal

func (m *ProductSearchResults_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductSearchResults_Result) XXX_Merge

func (m *ProductSearchResults_Result) XXX_Merge(src proto.Message)

func (*ProductSearchResults_Result) XXX_Size

func (m *ProductSearchResults_Result) XXX_Size() int

func (*ProductSearchResults_Result) XXX_Unmarshal

func (m *ProductSearchResults_Result) XXX_Unmarshal(b []byte) error

type ProductSearchServer

type ProductSearchServer interface {
	// Creates and returns a new ProductSet resource.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if display_name is missing, or is longer than
	//   4096 characters.
	CreateProductSet(context.Context, *CreateProductSetRequest) (*ProductSet, error)
	// Lists ProductSets in an unspecified order.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100, or less
	//   than 1.
	ListProductSets(context.Context, *ListProductSetsRequest) (*ListProductSetsResponse, error)
	// Gets information associated with a ProductSet.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	GetProductSet(context.Context, *GetProductSetRequest) (*ProductSet, error)
	// Makes changes to a ProductSet resource.
	// Only display_name can be updated currently.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	// * Returns INVALID_ARGUMENT if display_name is present in update_mask but
	//   missing from the request or longer than 4096 characters.
	UpdateProductSet(context.Context, *UpdateProductSetRequest) (*ProductSet, error)
	// Permanently deletes a ProductSet. All Products and ReferenceImages in the
	// ProductSet will be deleted.
	//
	// The actual image files are not deleted from Google Cloud Storage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the ProductSet does not exist.
	DeleteProductSet(context.Context, *DeleteProductSetRequest) (*empty.Empty, error)
	// Creates and returns a new product resource.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if display_name is missing or longer than 4096
	//   characters.
	// * Returns INVALID_ARGUMENT if description is longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if product_category is missing or invalid.
	CreateProduct(context.Context, *CreateProductRequest) (*Product, error)
	// Lists products in an unspecified order.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
	ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
	// Gets information associated with a Product.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product does not exist.
	GetProduct(context.Context, *GetProductRequest) (*Product, error)
	// Makes changes to a Product resource.
	// Only display_name, description and labels can be updated right now.
	//
	// If labels are updated, the change will not be reflected in queries until
	// the next index time.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product does not exist.
	// * Returns INVALID_ARGUMENT if display_name is present in update_mask but is
	//   missing from the request or longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if description is present in update_mask but is
	//   longer than 4096 characters.
	// * Returns INVALID_ARGUMENT if product_category is present in update_mask.
	UpdateProduct(context.Context, *UpdateProductRequest) (*Product, error)
	// Permanently deletes a product and its reference images.
	//
	// Metadata of the product and all its images will be deleted right away, but
	// search queries against ProductSets containing the product may still work
	// until all related caches are refreshed.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the product does not exist.
	DeleteProduct(context.Context, *DeleteProductRequest) (*empty.Empty, error)
	// Creates and returns a new ReferenceImage resource.
	//
	// The `bounding_poly` field is optional. If `bounding_poly` is not specified,
	// the system will try to detect regions of interest in the image that are
	// compatible with the product_category on the parent product. If it is
	// specified, detection is ALWAYS skipped. The system converts polygons into
	// non-rotated rectangles.
	//
	// Note that the pipeline will resize the image if the image resolution is too
	// large to process (above 50MP).
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if the image_uri is missing or longer than 4096
	//   characters.
	// * Returns INVALID_ARGUMENT if the product does not exist.
	// * Returns INVALID_ARGUMENT if bounding_poly is not provided, and nothing
	//   compatible with the parent product's product_category is detected.
	// * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
	CreateReferenceImage(context.Context, *CreateReferenceImageRequest) (*ReferenceImage, error)
	// Permanently deletes a reference image.
	//
	// The image metadata will be deleted right away, but search queries
	// against ProductSets containing the image may still work until all related
	// caches are refreshed.
	//
	// The actual image files are not deleted from Google Cloud Storage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the reference image does not exist.
	DeleteReferenceImage(context.Context, *DeleteReferenceImageRequest) (*empty.Empty, error)
	// Lists reference images.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the parent product does not exist.
	// * Returns INVALID_ARGUMENT if the page_size is greater than 100, or less
	//   than 1.
	ListReferenceImages(context.Context, *ListReferenceImagesRequest) (*ListReferenceImagesResponse, error)
	// Gets information associated with a ReferenceImage.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the specified image does not exist.
	GetReferenceImage(context.Context, *GetReferenceImageRequest) (*ReferenceImage, error)
	// Adds a Product to the specified ProductSet. If the Product is already
	// present, no change is made.
	//
	// One Product can be added to at most 100 ProductSets.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
	AddProductToProductSet(context.Context, *AddProductToProductSetRequest) (*empty.Empty, error)
	// Removes a Product from the specified ProductSet.
	//
	// Possible errors:
	//
	// * Returns NOT_FOUND If the Product is not found under the ProductSet.
	RemoveProductFromProductSet(context.Context, *RemoveProductFromProductSetRequest) (*empty.Empty, error)
	// Lists the Products in a ProductSet, in an unspecified order. If the
	// ProductSet does not exist, the products field of the response will be
	// empty.
	//
	// Possible errors:
	//
	// * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
	ListProductsInProductSet(context.Context, *ListProductsInProductSetRequest) (*ListProductsInProductSetResponse, error)
	// Asynchronous API that imports a list of reference images to specified
	// product sets based on a list of image information.
	//
	// The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the
	// progress and results of the request.
	// `Operation.metadata` contains `BatchOperationMetadata`. (progress)
	// `Operation.response` contains `ImportProductSetsResponse`. (results)
	//
	// The input source of this method is a csv file on Google Cloud Storage.
	// For the format of the csv file please see
	// [ImportProductSetsGcsSource.csv_file_uri][google.cloud.vision.v1p3beta1.ImportProductSetsGcsSource.csv_file_uri].
	ImportProductSets(context.Context, *ImportProductSetsRequest) (*longrunning.Operation, error)
}

ProductSearchServer is the server API for ProductSearch service.

type ProductSet

type ProductSet struct {
	// The resource name of the ProductSet.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
	//
	// This field is ignored when creating a ProductSet.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The user-provided name for this ProductSet. Must not be empty. Must be at
	// most 4096 characters long.
	DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// Output only. The time at which this ProductSet was last indexed. Query
	// results will reflect all updates before this time. If this ProductSet has
	// never been indexed, this field is 0.
	//
	// This field is ignored when creating a ProductSet.
	IndexTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=index_time,json=indexTime,proto3" json:"index_time,omitempty"`
	// Output only. If there was an error with indexing the product set, the field
	// is populated.
	//
	// This field is ignored when creating a ProductSet.
	IndexError           *status.Status `protobuf:"bytes,4,opt,name=index_error,json=indexError,proto3" json:"index_error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

A ProductSet contains Products. A ProductSet can contain a maximum of 1 million reference images. If the limit is exceeded, periodic indexing will fail.

func (*ProductSet) Descriptor

func (*ProductSet) Descriptor() ([]byte, []int)

func (*ProductSet) GetDisplayName

func (m *ProductSet) GetDisplayName() string

func (*ProductSet) GetIndexError

func (m *ProductSet) GetIndexError() *status.Status

func (*ProductSet) GetIndexTime

func (m *ProductSet) GetIndexTime() *timestamp.Timestamp

func (*ProductSet) GetName

func (m *ProductSet) GetName() string

func (*ProductSet) ProtoMessage

func (*ProductSet) ProtoMessage()

func (*ProductSet) Reset

func (m *ProductSet) Reset()

func (*ProductSet) String

func (m *ProductSet) String() string

func (*ProductSet) XXX_DiscardUnknown

func (m *ProductSet) XXX_DiscardUnknown()

func (*ProductSet) XXX_Marshal

func (m *ProductSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProductSet) XXX_Merge

func (m *ProductSet) XXX_Merge(src proto.Message)

func (*ProductSet) XXX_Size

func (m *ProductSet) XXX_Size() int

func (*ProductSet) XXX_Unmarshal

func (m *ProductSet) XXX_Unmarshal(b []byte) error

type Product_KeyValue

type Product_KeyValue struct {
	// The key of the label attached to the product. Cannot be empty and cannot
	// exceed 128 bytes.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The value of the label attached to the product. Cannot be empty and
	// cannot exceed 128 bytes.
	Value                string   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A product label represented as a key-value pair.

func (*Product_KeyValue) Descriptor

func (*Product_KeyValue) Descriptor() ([]byte, []int)

func (*Product_KeyValue) GetKey

func (m *Product_KeyValue) GetKey() string

func (*Product_KeyValue) GetValue

func (m *Product_KeyValue) GetValue() string

func (*Product_KeyValue) ProtoMessage

func (*Product_KeyValue) ProtoMessage()

func (*Product_KeyValue) Reset

func (m *Product_KeyValue) Reset()

func (*Product_KeyValue) String

func (m *Product_KeyValue) String() string

func (*Product_KeyValue) XXX_DiscardUnknown

func (m *Product_KeyValue) XXX_DiscardUnknown()

func (*Product_KeyValue) XXX_Marshal

func (m *Product_KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Product_KeyValue) XXX_Merge

func (m *Product_KeyValue) XXX_Merge(src proto.Message)

func (*Product_KeyValue) XXX_Size

func (m *Product_KeyValue) XXX_Size() int

func (*Product_KeyValue) XXX_Unmarshal

func (m *Product_KeyValue) XXX_Unmarshal(b []byte) error

type Property

type Property struct {
	// Name of the property.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Value of the property.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Value of numeric properties.
	Uint64Value          uint64   `protobuf:"varint,3,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A `Property` consists of a user-supplied name/value pair.

func (*Property) Descriptor

func (*Property) Descriptor() ([]byte, []int)

func (*Property) GetName

func (m *Property) GetName() string

func (*Property) GetUint64Value

func (m *Property) GetUint64Value() uint64

func (*Property) GetValue

func (m *Property) GetValue() string

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) Reset

func (m *Property) Reset()

func (*Property) String

func (m *Property) String() string

func (*Property) XXX_DiscardUnknown

func (m *Property) XXX_DiscardUnknown()

func (*Property) XXX_Marshal

func (m *Property) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Property) XXX_Merge

func (m *Property) XXX_Merge(src proto.Message)

func (*Property) XXX_Size

func (m *Property) XXX_Size() int

func (*Property) XXX_Unmarshal

func (m *Property) XXX_Unmarshal(b []byte) error

type ReferenceImage

type ReferenceImage struct {
	// The resource name of the reference image.
	//
	// Format is:
	//
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
	//
	// This field is ignored when creating a reference image.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The Google Cloud Storage URI of the reference image.
	//
	// The URI must start with `gs://`.
	//
	// Required.
	Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Bounding polygons around the areas of interest in the reference image.
	// Optional. If this field is empty, the system will try to detect regions of
	// interest. At most 10 bounding polygons will be used.
	//
	// The provided shape is converted into a non-rotated rectangle. Once
	// converted, the small edge of the rectangle must be greater than or equal
	// to 300 pixels. The aspect ratio must be 1:4 or less (i.e. 1:3 is ok; 1:5
	// is not).
	BoundingPolys        []*BoundingPoly `protobuf:"bytes,3,rep,name=bounding_polys,json=boundingPolys,proto3" json:"bounding_polys,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

A `ReferenceImage` represents a product image and its associated metadata, such as bounding boxes.

func (*ReferenceImage) Descriptor

func (*ReferenceImage) Descriptor() ([]byte, []int)

func (*ReferenceImage) GetBoundingPolys

func (m *ReferenceImage) GetBoundingPolys() []*BoundingPoly

func (*ReferenceImage) GetName

func (m *ReferenceImage) GetName() string

func (*ReferenceImage) GetUri

func (m *ReferenceImage) GetUri() string

func (*ReferenceImage) ProtoMessage

func (*ReferenceImage) ProtoMessage()

func (*ReferenceImage) Reset

func (m *ReferenceImage) Reset()

func (*ReferenceImage) String

func (m *ReferenceImage) String() string

func (*ReferenceImage) XXX_DiscardUnknown

func (m *ReferenceImage) XXX_DiscardUnknown()

func (*ReferenceImage) XXX_Marshal

func (m *ReferenceImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReferenceImage) XXX_Merge

func (m *ReferenceImage) XXX_Merge(src proto.Message)

func (*ReferenceImage) XXX_Size

func (m *ReferenceImage) XXX_Size() int

func (*ReferenceImage) XXX_Unmarshal

func (m *ReferenceImage) XXX_Unmarshal(b []byte) error

type RemoveProductFromProductSetRequest

type RemoveProductFromProductSetRequest struct {
	// The resource name for the ProductSet to modify.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The resource name for the Product to be removed from this ProductSet.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
	Product              string   `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request message for the `RemoveProductFromProductSet` method.

func (*RemoveProductFromProductSetRequest) Descriptor

func (*RemoveProductFromProductSetRequest) Descriptor() ([]byte, []int)

func (*RemoveProductFromProductSetRequest) GetName

func (*RemoveProductFromProductSetRequest) GetProduct

func (*RemoveProductFromProductSetRequest) ProtoMessage

func (*RemoveProductFromProductSetRequest) ProtoMessage()

func (*RemoveProductFromProductSetRequest) Reset

func (*RemoveProductFromProductSetRequest) String

func (*RemoveProductFromProductSetRequest) XXX_DiscardUnknown

func (m *RemoveProductFromProductSetRequest) XXX_DiscardUnknown()

func (*RemoveProductFromProductSetRequest) XXX_Marshal

func (m *RemoveProductFromProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RemoveProductFromProductSetRequest) XXX_Merge

func (*RemoveProductFromProductSetRequest) XXX_Size

func (*RemoveProductFromProductSetRequest) XXX_Unmarshal

func (m *RemoveProductFromProductSetRequest) XXX_Unmarshal(b []byte) error

type SafeSearchAnnotation

type SafeSearchAnnotation struct {
	// Represents the adult content likelihood for the image. Adult content may
	// contain elements such as nudity, pornographic images or cartoons, or
	// sexual activities.
	Adult Likelihood `protobuf:"varint,1,opt,name=adult,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"adult,omitempty"`
	// Spoof likelihood. The likelihood that an modification
	// was made to the image's canonical version to make it appear
	// funny or offensive.
	Spoof Likelihood `protobuf:"varint,2,opt,name=spoof,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"spoof,omitempty"`
	// Likelihood that this is a medical image.
	Medical Likelihood `protobuf:"varint,3,opt,name=medical,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"medical,omitempty"`
	// Likelihood that this image contains violent content.
	Violence Likelihood `protobuf:"varint,4,opt,name=violence,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"violence,omitempty"`
	// Likelihood that the request image contains racy content. Racy content may
	// include (but is not limited to) skimpy or sheer clothing, strategically
	// covered nudity, lewd or provocative poses, or close-ups of sensitive
	// body areas.
	Racy                 Likelihood `protobuf:"varint,9,opt,name=racy,proto3,enum=google.cloud.vision.v1p3beta1.Likelihood" json:"racy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

Set of features pertaining to the image, computed by computer vision methods over safe-search verticals (for example, adult, spoof, medical, violence).

func (*SafeSearchAnnotation) Descriptor

func (*SafeSearchAnnotation) Descriptor() ([]byte, []int)

func (*SafeSearchAnnotation) GetAdult

func (m *SafeSearchAnnotation) GetAdult() Likelihood

func (*SafeSearchAnnotation) GetMedical

func (m *SafeSearchAnnotation) GetMedical() Likelihood

func (*SafeSearchAnnotation) GetRacy

func (m *SafeSearchAnnotation) GetRacy() Likelihood

func (*SafeSearchAnnotation) GetSpoof

func (m *SafeSearchAnnotation) GetSpoof() Likelihood

func (*SafeSearchAnnotation) GetViolence

func (m *SafeSearchAnnotation) GetViolence() Likelihood

func (*SafeSearchAnnotation) ProtoMessage

func (*SafeSearchAnnotation) ProtoMessage()

func (*SafeSearchAnnotation) Reset

func (m *SafeSearchAnnotation) Reset()

func (*SafeSearchAnnotation) String

func (m *SafeSearchAnnotation) String() string

func (*SafeSearchAnnotation) XXX_DiscardUnknown

func (m *SafeSearchAnnotation) XXX_DiscardUnknown()

func (*SafeSearchAnnotation) XXX_Marshal

func (m *SafeSearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SafeSearchAnnotation) XXX_Merge

func (m *SafeSearchAnnotation) XXX_Merge(src proto.Message)

func (*SafeSearchAnnotation) XXX_Size

func (m *SafeSearchAnnotation) XXX_Size() int

func (*SafeSearchAnnotation) XXX_Unmarshal

func (m *SafeSearchAnnotation) XXX_Unmarshal(b []byte) error

type Symbol

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:"-"`
}

A single symbol representation.

func (*Symbol) Descriptor

func (*Symbol) Descriptor() ([]byte, []int)

func (*Symbol) GetBoundingBox

func (m *Symbol) GetBoundingBox() *BoundingPoly

func (*Symbol) GetConfidence

func (m *Symbol) GetConfidence() float32

func (*Symbol) GetProperty

func (m *Symbol) GetProperty() *TextAnnotation_TextProperty

func (*Symbol) GetText

func (m *Symbol) GetText() string

func (*Symbol) ProtoMessage

func (*Symbol) ProtoMessage()

func (*Symbol) Reset

func (m *Symbol) Reset()

func (*Symbol) String

func (m *Symbol) String() string

func (*Symbol) XXX_DiscardUnknown

func (m *Symbol) XXX_DiscardUnknown()

func (*Symbol) XXX_Marshal

func (m *Symbol) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Symbol) XXX_Merge

func (m *Symbol) XXX_Merge(src proto.Message)

func (*Symbol) XXX_Size

func (m *Symbol) XXX_Size() int

func (*Symbol) XXX_Unmarshal

func (m *Symbol) XXX_Unmarshal(b []byte) error

type TextAnnotation

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:"-"`
}

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.

func (*TextAnnotation) Descriptor

func (*TextAnnotation) Descriptor() ([]byte, []int)

func (*TextAnnotation) GetPages

func (m *TextAnnotation) GetPages() []*Page

func (*TextAnnotation) GetText

func (m *TextAnnotation) GetText() string

func (*TextAnnotation) ProtoMessage

func (*TextAnnotation) ProtoMessage()

func (*TextAnnotation) Reset

func (m *TextAnnotation) Reset()

func (*TextAnnotation) String

func (m *TextAnnotation) String() string

func (*TextAnnotation) XXX_DiscardUnknown

func (m *TextAnnotation) XXX_DiscardUnknown()

func (*TextAnnotation) XXX_Marshal

func (m *TextAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextAnnotation) XXX_Merge

func (m *TextAnnotation) XXX_Merge(src proto.Message)

func (*TextAnnotation) XXX_Size

func (m *TextAnnotation) XXX_Size() int

func (*TextAnnotation) XXX_Unmarshal

func (m *TextAnnotation) XXX_Unmarshal(b []byte) error

type TextAnnotation_DetectedBreak

type TextAnnotation_DetectedBreak struct {
	// Detected break type.
	Type TextAnnotation_DetectedBreak_BreakType `` /* 136-byte string literal not displayed */
	// 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:"-"`
}

Detected start or end of a structural component.

func (*TextAnnotation_DetectedBreak) Descriptor

func (*TextAnnotation_DetectedBreak) Descriptor() ([]byte, []int)

func (*TextAnnotation_DetectedBreak) GetIsPrefix

func (m *TextAnnotation_DetectedBreak) GetIsPrefix() bool

func (*TextAnnotation_DetectedBreak) GetType

func (*TextAnnotation_DetectedBreak) ProtoMessage

func (*TextAnnotation_DetectedBreak) ProtoMessage()

func (*TextAnnotation_DetectedBreak) Reset

func (m *TextAnnotation_DetectedBreak) Reset()

func (*TextAnnotation_DetectedBreak) String

func (*TextAnnotation_DetectedBreak) XXX_DiscardUnknown

func (m *TextAnnotation_DetectedBreak) XXX_DiscardUnknown()

func (*TextAnnotation_DetectedBreak) XXX_Marshal

func (m *TextAnnotation_DetectedBreak) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextAnnotation_DetectedBreak) XXX_Merge

func (m *TextAnnotation_DetectedBreak) XXX_Merge(src proto.Message)

func (*TextAnnotation_DetectedBreak) XXX_Size

func (m *TextAnnotation_DetectedBreak) XXX_Size() int

func (*TextAnnotation_DetectedBreak) XXX_Unmarshal

func (m *TextAnnotation_DetectedBreak) XXX_Unmarshal(b []byte) error

type TextAnnotation_DetectedBreak_BreakType

type TextAnnotation_DetectedBreak_BreakType int32

Enum to denote the type of break found. New line, space etc.

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
)

func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor

func (TextAnnotation_DetectedBreak_BreakType) EnumDescriptor() ([]byte, []int)

func (TextAnnotation_DetectedBreak_BreakType) String

type TextAnnotation_DetectedLanguage

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:"-"`
}

Detected language for a structural component.

func (*TextAnnotation_DetectedLanguage) Descriptor

func (*TextAnnotation_DetectedLanguage) Descriptor() ([]byte, []int)

func (*TextAnnotation_DetectedLanguage) GetConfidence

func (m *TextAnnotation_DetectedLanguage) GetConfidence() float32

func (*TextAnnotation_DetectedLanguage) GetLanguageCode

func (m *TextAnnotation_DetectedLanguage) GetLanguageCode() string

func (*TextAnnotation_DetectedLanguage) ProtoMessage

func (*TextAnnotation_DetectedLanguage) ProtoMessage()

func (*TextAnnotation_DetectedLanguage) Reset

func (*TextAnnotation_DetectedLanguage) String

func (*TextAnnotation_DetectedLanguage) XXX_DiscardUnknown

func (m *TextAnnotation_DetectedLanguage) XXX_DiscardUnknown()

func (*TextAnnotation_DetectedLanguage) XXX_Marshal

func (m *TextAnnotation_DetectedLanguage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextAnnotation_DetectedLanguage) XXX_Merge

func (m *TextAnnotation_DetectedLanguage) XXX_Merge(src proto.Message)

func (*TextAnnotation_DetectedLanguage) XXX_Size

func (m *TextAnnotation_DetectedLanguage) XXX_Size() int

func (*TextAnnotation_DetectedLanguage) XXX_Unmarshal

func (m *TextAnnotation_DetectedLanguage) XXX_Unmarshal(b []byte) error

type TextAnnotation_TextProperty

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:"-"`
}

Additional information detected on the structural component.

func (*TextAnnotation_TextProperty) Descriptor

func (*TextAnnotation_TextProperty) Descriptor() ([]byte, []int)

func (*TextAnnotation_TextProperty) GetDetectedBreak

func (*TextAnnotation_TextProperty) GetDetectedLanguages

func (m *TextAnnotation_TextProperty) GetDetectedLanguages() []*TextAnnotation_DetectedLanguage

func (*TextAnnotation_TextProperty) ProtoMessage

func (*TextAnnotation_TextProperty) ProtoMessage()

func (*TextAnnotation_TextProperty) Reset

func (m *TextAnnotation_TextProperty) Reset()

func (*TextAnnotation_TextProperty) String

func (m *TextAnnotation_TextProperty) String() string

func (*TextAnnotation_TextProperty) XXX_DiscardUnknown

func (m *TextAnnotation_TextProperty) XXX_DiscardUnknown()

func (*TextAnnotation_TextProperty) XXX_Marshal

func (m *TextAnnotation_TextProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TextAnnotation_TextProperty) XXX_Merge

func (m *TextAnnotation_TextProperty) XXX_Merge(src proto.Message)

func (*TextAnnotation_TextProperty) XXX_Size

func (m *TextAnnotation_TextProperty) XXX_Size() int

func (*TextAnnotation_TextProperty) XXX_Unmarshal

func (m *TextAnnotation_TextProperty) XXX_Unmarshal(b []byte) error

type UpdateProductRequest

type UpdateProductRequest struct {
	// The Product resource which replaces the one on the server.
	// product.name is immutable.
	Product *Product `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"`
	// The [FieldMask][google.protobuf.FieldMask] that specifies which fields
	// to update.
	// If update_mask isn't specified, all mutable fields are to be updated.
	// Valid mask paths include `product_labels`, `display_name` and
	// `description`.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for the `UpdateProduct` method.

func (*UpdateProductRequest) Descriptor

func (*UpdateProductRequest) Descriptor() ([]byte, []int)

func (*UpdateProductRequest) GetProduct

func (m *UpdateProductRequest) GetProduct() *Product

func (*UpdateProductRequest) GetUpdateMask

func (m *UpdateProductRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateProductRequest) ProtoMessage

func (*UpdateProductRequest) ProtoMessage()

func (*UpdateProductRequest) Reset

func (m *UpdateProductRequest) Reset()

func (*UpdateProductRequest) String

func (m *UpdateProductRequest) String() string

func (*UpdateProductRequest) XXX_DiscardUnknown

func (m *UpdateProductRequest) XXX_DiscardUnknown()

func (*UpdateProductRequest) XXX_Marshal

func (m *UpdateProductRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateProductRequest) XXX_Merge

func (m *UpdateProductRequest) XXX_Merge(src proto.Message)

func (*UpdateProductRequest) XXX_Size

func (m *UpdateProductRequest) XXX_Size() int

func (*UpdateProductRequest) XXX_Unmarshal

func (m *UpdateProductRequest) XXX_Unmarshal(b []byte) error

type UpdateProductSetRequest

type UpdateProductSetRequest struct {
	// The ProductSet resource which replaces the one on the server.
	ProductSet *ProductSet `protobuf:"bytes,1,opt,name=product_set,json=productSet,proto3" json:"product_set,omitempty"`
	// The [FieldMask][google.protobuf.FieldMask] that specifies which fields to
	// update.
	// If update_mask isn't specified, all mutable fields are to be updated.
	// Valid mask path is `display_name`.
	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request message for the `UpdateProductSet` method.

func (*UpdateProductSetRequest) Descriptor

func (*UpdateProductSetRequest) Descriptor() ([]byte, []int)

func (*UpdateProductSetRequest) GetProductSet

func (m *UpdateProductSetRequest) GetProductSet() *ProductSet

func (*UpdateProductSetRequest) GetUpdateMask

func (m *UpdateProductSetRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateProductSetRequest) ProtoMessage

func (*UpdateProductSetRequest) ProtoMessage()

func (*UpdateProductSetRequest) Reset

func (m *UpdateProductSetRequest) Reset()

func (*UpdateProductSetRequest) String

func (m *UpdateProductSetRequest) String() string

func (*UpdateProductSetRequest) XXX_DiscardUnknown

func (m *UpdateProductSetRequest) XXX_DiscardUnknown()

func (*UpdateProductSetRequest) XXX_Marshal

func (m *UpdateProductSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateProductSetRequest) XXX_Merge

func (m *UpdateProductSetRequest) XXX_Merge(src proto.Message)

func (*UpdateProductSetRequest) XXX_Size

func (m *UpdateProductSetRequest) XXX_Size() int

func (*UpdateProductSetRequest) XXX_Unmarshal

func (m *UpdateProductSetRequest) XXX_Unmarshal(b []byte) error

type Vertex

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:"-"`
}

A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.

func (*Vertex) Descriptor

func (*Vertex) Descriptor() ([]byte, []int)

func (*Vertex) GetX

func (m *Vertex) GetX() int32

func (*Vertex) GetY

func (m *Vertex) GetY() int32

func (*Vertex) ProtoMessage

func (*Vertex) ProtoMessage()

func (*Vertex) Reset

func (m *Vertex) Reset()

func (*Vertex) String

func (m *Vertex) String() string

func (*Vertex) XXX_DiscardUnknown

func (m *Vertex) XXX_DiscardUnknown()

func (*Vertex) XXX_Marshal

func (m *Vertex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vertex) XXX_Merge

func (m *Vertex) XXX_Merge(src proto.Message)

func (*Vertex) XXX_Size

func (m *Vertex) XXX_Size() int

func (*Vertex) XXX_Unmarshal

func (m *Vertex) XXX_Unmarshal(b []byte) error

type WebDetection

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 `` /* 126-byte string literal not displayed */
	// Web pages containing the matching images from the Internet.
	PagesWithMatchingImages []*WebDetection_WebPage `` /* 134-byte string literal not displayed */
	// The visually similar image results.
	VisuallySimilarImages []*WebDetection_WebImage `` /* 126-byte string literal not displayed */
	// 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:"-"`
}

Relevant information for the image from the Internet.

func (*WebDetection) Descriptor

func (*WebDetection) Descriptor() ([]byte, []int)

func (*WebDetection) GetBestGuessLabels

func (m *WebDetection) GetBestGuessLabels() []*WebDetection_WebLabel

func (*WebDetection) GetFullMatchingImages

func (m *WebDetection) GetFullMatchingImages() []*WebDetection_WebImage

func (*WebDetection) GetPagesWithMatchingImages

func (m *WebDetection) GetPagesWithMatchingImages() []*WebDetection_WebPage

func (*WebDetection) GetPartialMatchingImages

func (m *WebDetection) GetPartialMatchingImages() []*WebDetection_WebImage

func (*WebDetection) GetVisuallySimilarImages

func (m *WebDetection) GetVisuallySimilarImages() []*WebDetection_WebImage

func (*WebDetection) GetWebEntities

func (m *WebDetection) GetWebEntities() []*WebDetection_WebEntity

func (*WebDetection) ProtoMessage

func (*WebDetection) ProtoMessage()

func (*WebDetection) Reset

func (m *WebDetection) Reset()

func (*WebDetection) String

func (m *WebDetection) String() string

func (*WebDetection) XXX_DiscardUnknown

func (m *WebDetection) XXX_DiscardUnknown()

func (*WebDetection) XXX_Marshal

func (m *WebDetection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetection) XXX_Merge

func (m *WebDetection) XXX_Merge(src proto.Message)

func (*WebDetection) XXX_Size

func (m *WebDetection) XXX_Size() int

func (*WebDetection) XXX_Unmarshal

func (m *WebDetection) XXX_Unmarshal(b []byte) error

type WebDetectionParams

type WebDetectionParams struct {
	// Whether to include results derived from the geo information in the image.
	IncludeGeoResults    bool     `protobuf:"varint,2,opt,name=include_geo_results,json=includeGeoResults,proto3" json:"include_geo_results,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Parameters for web detection request.

func (*WebDetectionParams) Descriptor

func (*WebDetectionParams) Descriptor() ([]byte, []int)

func (*WebDetectionParams) GetIncludeGeoResults

func (m *WebDetectionParams) GetIncludeGeoResults() bool

func (*WebDetectionParams) ProtoMessage

func (*WebDetectionParams) ProtoMessage()

func (*WebDetectionParams) Reset

func (m *WebDetectionParams) Reset()

func (*WebDetectionParams) String

func (m *WebDetectionParams) String() string

func (*WebDetectionParams) XXX_DiscardUnknown

func (m *WebDetectionParams) XXX_DiscardUnknown()

func (*WebDetectionParams) XXX_Marshal

func (m *WebDetectionParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetectionParams) XXX_Merge

func (m *WebDetectionParams) XXX_Merge(src proto.Message)

func (*WebDetectionParams) XXX_Size

func (m *WebDetectionParams) XXX_Size() int

func (*WebDetectionParams) XXX_Unmarshal

func (m *WebDetectionParams) XXX_Unmarshal(b []byte) error

type WebDetection_WebEntity

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:"-"`
}

Entity deduced from similar images on the Internet.

func (*WebDetection_WebEntity) Descriptor

func (*WebDetection_WebEntity) Descriptor() ([]byte, []int)

func (*WebDetection_WebEntity) GetDescription

func (m *WebDetection_WebEntity) GetDescription() string

func (*WebDetection_WebEntity) GetEntityId

func (m *WebDetection_WebEntity) GetEntityId() string

func (*WebDetection_WebEntity) GetScore

func (m *WebDetection_WebEntity) GetScore() float32

func (*WebDetection_WebEntity) ProtoMessage

func (*WebDetection_WebEntity) ProtoMessage()

func (*WebDetection_WebEntity) Reset

func (m *WebDetection_WebEntity) Reset()

func (*WebDetection_WebEntity) String

func (m *WebDetection_WebEntity) String() string

func (*WebDetection_WebEntity) XXX_DiscardUnknown

func (m *WebDetection_WebEntity) XXX_DiscardUnknown()

func (*WebDetection_WebEntity) XXX_Marshal

func (m *WebDetection_WebEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetection_WebEntity) XXX_Merge

func (m *WebDetection_WebEntity) XXX_Merge(src proto.Message)

func (*WebDetection_WebEntity) XXX_Size

func (m *WebDetection_WebEntity) XXX_Size() int

func (*WebDetection_WebEntity) XXX_Unmarshal

func (m *WebDetection_WebEntity) XXX_Unmarshal(b []byte) error

type WebDetection_WebImage

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:"-"`
}

Metadata for online images.

func (*WebDetection_WebImage) Descriptor

func (*WebDetection_WebImage) Descriptor() ([]byte, []int)

func (*WebDetection_WebImage) GetScore

func (m *WebDetection_WebImage) GetScore() float32

func (*WebDetection_WebImage) GetUrl

func (m *WebDetection_WebImage) GetUrl() string

func (*WebDetection_WebImage) ProtoMessage

func (*WebDetection_WebImage) ProtoMessage()

func (*WebDetection_WebImage) Reset

func (m *WebDetection_WebImage) Reset()

func (*WebDetection_WebImage) String

func (m *WebDetection_WebImage) String() string

func (*WebDetection_WebImage) XXX_DiscardUnknown

func (m *WebDetection_WebImage) XXX_DiscardUnknown()

func (*WebDetection_WebImage) XXX_Marshal

func (m *WebDetection_WebImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetection_WebImage) XXX_Merge

func (m *WebDetection_WebImage) XXX_Merge(src proto.Message)

func (*WebDetection_WebImage) XXX_Size

func (m *WebDetection_WebImage) XXX_Size() int

func (*WebDetection_WebImage) XXX_Unmarshal

func (m *WebDetection_WebImage) XXX_Unmarshal(b []byte) error

type WebDetection_WebLabel

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:"-"`
}

Label to provide extra metadata for the web detection.

func (*WebDetection_WebLabel) Descriptor

func (*WebDetection_WebLabel) Descriptor() ([]byte, []int)

func (*WebDetection_WebLabel) GetLabel

func (m *WebDetection_WebLabel) GetLabel() string

func (*WebDetection_WebLabel) GetLanguageCode

func (m *WebDetection_WebLabel) GetLanguageCode() string

func (*WebDetection_WebLabel) ProtoMessage

func (*WebDetection_WebLabel) ProtoMessage()

func (*WebDetection_WebLabel) Reset

func (m *WebDetection_WebLabel) Reset()

func (*WebDetection_WebLabel) String

func (m *WebDetection_WebLabel) String() string

func (*WebDetection_WebLabel) XXX_DiscardUnknown

func (m *WebDetection_WebLabel) XXX_DiscardUnknown()

func (*WebDetection_WebLabel) XXX_Marshal

func (m *WebDetection_WebLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetection_WebLabel) XXX_Merge

func (m *WebDetection_WebLabel) XXX_Merge(src proto.Message)

func (*WebDetection_WebLabel) XXX_Size

func (m *WebDetection_WebLabel) XXX_Size() int

func (*WebDetection_WebLabel) XXX_Unmarshal

func (m *WebDetection_WebLabel) XXX_Unmarshal(b []byte) error

type WebDetection_WebPage

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 `` /* 126-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                 `json:"-"`
	XXX_unrecognized      []byte                   `json:"-"`
	XXX_sizecache         int32                    `json:"-"`
}

Metadata for web pages.

func (*WebDetection_WebPage) Descriptor

func (*WebDetection_WebPage) Descriptor() ([]byte, []int)

func (*WebDetection_WebPage) GetFullMatchingImages

func (m *WebDetection_WebPage) GetFullMatchingImages() []*WebDetection_WebImage

func (*WebDetection_WebPage) GetPageTitle

func (m *WebDetection_WebPage) GetPageTitle() string

func (*WebDetection_WebPage) GetPartialMatchingImages

func (m *WebDetection_WebPage) GetPartialMatchingImages() []*WebDetection_WebImage

func (*WebDetection_WebPage) GetScore

func (m *WebDetection_WebPage) GetScore() float32

func (*WebDetection_WebPage) GetUrl

func (m *WebDetection_WebPage) GetUrl() string

func (*WebDetection_WebPage) ProtoMessage

func (*WebDetection_WebPage) ProtoMessage()

func (*WebDetection_WebPage) Reset

func (m *WebDetection_WebPage) Reset()

func (*WebDetection_WebPage) String

func (m *WebDetection_WebPage) String() string

func (*WebDetection_WebPage) XXX_DiscardUnknown

func (m *WebDetection_WebPage) XXX_DiscardUnknown()

func (*WebDetection_WebPage) XXX_Marshal

func (m *WebDetection_WebPage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WebDetection_WebPage) XXX_Merge

func (m *WebDetection_WebPage) XXX_Merge(src proto.Message)

func (*WebDetection_WebPage) XXX_Size

func (m *WebDetection_WebPage) XXX_Size() int

func (*WebDetection_WebPage) XXX_Unmarshal

func (m *WebDetection_WebPage) XXX_Unmarshal(b []byte) error

type Word

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:"-"`
}

A word representation.

func (*Word) Descriptor

func (*Word) Descriptor() ([]byte, []int)

func (*Word) GetBoundingBox

func (m *Word) GetBoundingBox() *BoundingPoly

func (*Word) GetConfidence

func (m *Word) GetConfidence() float32

func (*Word) GetProperty

func (m *Word) GetProperty() *TextAnnotation_TextProperty

func (*Word) GetSymbols

func (m *Word) GetSymbols() []*Symbol

func (*Word) ProtoMessage

func (*Word) ProtoMessage()

func (*Word) Reset

func (m *Word) Reset()

func (*Word) String

func (m *Word) String() string

func (*Word) XXX_DiscardUnknown

func (m *Word) XXX_DiscardUnknown()

func (*Word) XXX_Marshal

func (m *Word) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Word) XXX_Merge

func (m *Word) XXX_Merge(src proto.Message)

func (*Word) XXX_Size

func (m *Word) XXX_Size() int

func (*Word) XXX_Unmarshal

func (m *Word) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL