vision

package
Version: v0.0.0-...-7823e68 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 78

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Likelihood_name = map[int32]string{
		0: "UNKNOWN",
		1: "VERY_UNLIKELY",
		2: "UNLIKELY",
		3: "POSSIBLE",
		4: "LIKELY",
		5: "VERY_LIKELY",
	}
	Likelihood_value = map[string]int32{
		"UNKNOWN":       0,
		"VERY_UNLIKELY": 1,
		"UNLIKELY":      2,
		"POSSIBLE":      3,
		"LIKELY":        4,
		"VERY_LIKELY":   5,
	}
)

Enum value maps for Likelihood.

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",
	}
	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,
	}
)

Enum value maps for Feature_Type.

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",
		35: "LEFT_CHEEK_CENTER",
		36: "RIGHT_CHEEK_CENTER",
	}
	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,
		"LEFT_CHEEK_CENTER":            35,
		"RIGHT_CHEEK_CENTER":           36,
	}
)

Enum value maps for FaceAnnotation_Landmark_Type.

View Source
var (
	OperationMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "CREATED",
		2: "RUNNING",
		3: "DONE",
		4: "CANCELLED",
	}
	OperationMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"CREATED":           1,
		"RUNNING":           2,
		"DONE":              3,
		"CANCELLED":         4,
	}
)

Enum value maps for OperationMetadata_State.

View Source
var (
	BatchOperationMetadata_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "PROCESSING",
		2: "SUCCESSFUL",
		3: "FAILED",
		4: "CANCELLED",
	}
	BatchOperationMetadata_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"PROCESSING":        1,
		"SUCCESSFUL":        2,
		"FAILED":            3,
		"CANCELLED":         4,
	}
)

Enum value maps for BatchOperationMetadata_State.

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",
	}
	TextAnnotation_DetectedBreak_BreakType_value = map[string]int32{
		"UNKNOWN":        0,
		"SPACE":          1,
		"SURE_SPACE":     2,
		"EOL_SURE_SPACE": 3,
		"HYPHEN":         4,
		"LINE_BREAK":     5,
	}
)

Enum value maps for TextAnnotation_DetectedBreak_BreakType.

View Source
var (
	Block_BlockType_name = map[int32]string{
		0: "UNKNOWN",
		1: "TEXT",
		2: "TABLE",
		3: "PICTURE",
		4: "RULER",
		5: "BARCODE",
	}
	Block_BlockType_value = map[string]int32{
		"UNKNOWN": 0,
		"TEXT":    1,
		"TABLE":   2,
		"PICTURE": 3,
		"RULER":   4,
		"BARCODE": 5,
	}
)

Enum value maps for Block_BlockType.

View Source
var File_google_cloud_vision_v1_geometry_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_vision_v1_image_annotator_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_vision_v1_product_search_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_vision_v1_product_search_service_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_vision_v1_text_annotation_proto protoreflect.FileDescriptor
View Source
var File_google_cloud_vision_v1_web_detection_proto protoreflect.FileDescriptor

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 {

	// Required. 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"`
	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `AddProductToProductSet` method.

func (*AddProductToProductSetRequest) Descriptor deprecated

This method has been deprecated.
func (*AddProductToProductSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddProductToProductSetRequest.ProtoReflect.Descriptor instead.

func (*AddProductToProductSetRequest) GetName

func (*AddProductToProductSetRequest) GetProduct

func (x *AddProductToProductSetRequest) GetProduct() string

func (*AddProductToProductSetRequest) ProtoMessage

func (*AddProductToProductSetRequest) ProtoMessage()

func (*AddProductToProductSetRequest) ProtoReflect

func (*AddProductToProductSetRequest) Reset

func (x *AddProductToProductSetRequest) Reset()

func (*AddProductToProductSetRequest) String

type AnnotateFileRequest

type AnnotateFileRequest 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"`
	// Pages of the file to perform image annotation.
	//
	// Pages starts from 1, we assume the first page of the file is page 1.
	// At most 5 pages are supported per request. Pages can be negative.
	//
	// Page 1 means the first page.
	// Page 2 means the second page.
	// Page -1 means the last page.
	// Page -2 means the second to the last page.
	//
	// If the file is GIF instead of PDF or TIFF, page refers to GIF frames.
	//
	// If this field is empty, by default the service performs image annotation
	// for the first 5 pages of the file.
	Pages []int32 `protobuf:"varint,4,rep,packed,name=pages,proto3" json:"pages,omitempty"`
	// contains filtered or unexported fields
}

A request to annotate one single file, e.g. a PDF, TIFF or GIF file.

func (*AnnotateFileRequest) Descriptor deprecated

This method has been deprecated.
func (*AnnotateFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use AnnotateFileRequest.ProtoReflect.Descriptor instead.

func (*AnnotateFileRequest) GetFeatures

func (x *AnnotateFileRequest) GetFeatures() []*Feature

func (*AnnotateFileRequest) GetImageContext

func (x *AnnotateFileRequest) GetImageContext() *ImageContext

func (*AnnotateFileRequest) GetInputConfig

func (x *AnnotateFileRequest) GetInputConfig() *InputConfig

func (*AnnotateFileRequest) GetPages

func (x *AnnotateFileRequest) GetPages() []int32

func (*AnnotateFileRequest) ProtoMessage

func (*AnnotateFileRequest) ProtoMessage()

func (*AnnotateFileRequest) ProtoReflect

func (x *AnnotateFileRequest) ProtoReflect() protoreflect.Message

func (*AnnotateFileRequest) Reset

func (x *AnnotateFileRequest) Reset()

func (*AnnotateFileRequest) String

func (x *AnnotateFileRequest) String() string

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. This field will be
	// empty if the `error` field is set.
	Responses []*AnnotateImageResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"`
	// This field gives the total number of pages in the file.
	TotalPages int32 `protobuf:"varint,3,opt,name=total_pages,json=totalPages,proto3" json:"total_pages,omitempty"`
	// If set, represents the error message for the failed request. The
	// `responses` field will not be set in this case.
	Error *status.Status `protobuf:"bytes,4,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

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

func (*AnnotateFileResponse) Descriptor deprecated

This method has been deprecated.
func (*AnnotateFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use AnnotateFileResponse.ProtoReflect.Descriptor instead.

func (*AnnotateFileResponse) GetError

func (x *AnnotateFileResponse) GetError() *status.Status

func (*AnnotateFileResponse) GetInputConfig

func (x *AnnotateFileResponse) GetInputConfig() *InputConfig

func (*AnnotateFileResponse) GetResponses

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

func (*AnnotateFileResponse) GetTotalPages

func (x *AnnotateFileResponse) GetTotalPages() int32

func (*AnnotateFileResponse) ProtoMessage

func (*AnnotateFileResponse) ProtoMessage()

func (*AnnotateFileResponse) ProtoReflect

func (x *AnnotateFileResponse) ProtoReflect() protoreflect.Message

func (*AnnotateFileResponse) Reset

func (x *AnnotateFileResponse) Reset()

func (*AnnotateFileResponse) String

func (x *AnnotateFileResponse) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*AnnotateImageRequest) Descriptor deprecated

This method has been deprecated.
func (*AnnotateImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use AnnotateImageRequest.ProtoReflect.Descriptor instead.

func (*AnnotateImageRequest) GetFeatures

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

func (*AnnotateImageRequest) GetImage

func (x *AnnotateImageRequest) GetImage() *Image

func (*AnnotateImageRequest) GetImageContext

func (x *AnnotateImageRequest) GetImageContext() *ImageContext

func (*AnnotateImageRequest) ProtoMessage

func (*AnnotateImageRequest) ProtoMessage()

func (*AnnotateImageRequest) ProtoReflect

func (x *AnnotateImageRequest) ProtoReflect() protoreflect.Message

func (*AnnotateImageRequest) Reset

func (x *AnnotateImageRequest) Reset()

func (*AnnotateImageRequest) String

func (x *AnnotateImageRequest) String() string

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"`
	// contains filtered or unexported fields
}

Response to an image annotation request.

func (*AnnotateImageResponse) Descriptor deprecated

This method has been deprecated.
func (*AnnotateImageResponse) Descriptor() ([]byte, []int)

Deprecated: Use AnnotateImageResponse.ProtoReflect.Descriptor instead.

func (*AnnotateImageResponse) GetContext

func (*AnnotateImageResponse) GetCropHintsAnnotation

func (x *AnnotateImageResponse) GetCropHintsAnnotation() *CropHintsAnnotation

func (*AnnotateImageResponse) GetError

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

func (*AnnotateImageResponse) GetFaceAnnotations

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

func (*AnnotateImageResponse) GetFullTextAnnotation

func (x *AnnotateImageResponse) GetFullTextAnnotation() *TextAnnotation

func (*AnnotateImageResponse) GetImagePropertiesAnnotation

func (x *AnnotateImageResponse) GetImagePropertiesAnnotation() *ImageProperties

func (*AnnotateImageResponse) GetLabelAnnotations

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

func (*AnnotateImageResponse) GetLandmarkAnnotations

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

func (*AnnotateImageResponse) GetLocalizedObjectAnnotations

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

func (*AnnotateImageResponse) GetLogoAnnotations

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

func (*AnnotateImageResponse) GetProductSearchResults

func (x *AnnotateImageResponse) GetProductSearchResults() *ProductSearchResults

func (*AnnotateImageResponse) GetSafeSearchAnnotation

func (x *AnnotateImageResponse) GetSafeSearchAnnotation() *SafeSearchAnnotation

func (*AnnotateImageResponse) GetTextAnnotations

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

func (*AnnotateImageResponse) GetWebDetection

func (x *AnnotateImageResponse) GetWebDetection() *WebDetection

func (*AnnotateImageResponse) ProtoMessage

func (*AnnotateImageResponse) ProtoMessage()

func (*AnnotateImageResponse) ProtoReflect

func (x *AnnotateImageResponse) ProtoReflect() protoreflect.Message

func (*AnnotateImageResponse) Reset

func (x *AnnotateImageResponse) Reset()

func (*AnnotateImageResponse) String

func (x *AnnotateImageResponse) String() string

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"`
	// contains filtered or unexported fields
}

An offline file annotation request.

func (*AsyncAnnotateFileRequest) Descriptor deprecated

This method has been deprecated.
func (*AsyncAnnotateFileRequest) Descriptor() ([]byte, []int)

Deprecated: Use AsyncAnnotateFileRequest.ProtoReflect.Descriptor instead.

func (*AsyncAnnotateFileRequest) GetFeatures

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

func (*AsyncAnnotateFileRequest) GetImageContext

func (x *AsyncAnnotateFileRequest) GetImageContext() *ImageContext

func (*AsyncAnnotateFileRequest) GetInputConfig

func (x *AsyncAnnotateFileRequest) GetInputConfig() *InputConfig

func (*AsyncAnnotateFileRequest) GetOutputConfig

func (x *AsyncAnnotateFileRequest) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileRequest) ProtoMessage

func (*AsyncAnnotateFileRequest) ProtoMessage()

func (*AsyncAnnotateFileRequest) ProtoReflect

func (x *AsyncAnnotateFileRequest) ProtoReflect() protoreflect.Message

func (*AsyncAnnotateFileRequest) Reset

func (x *AsyncAnnotateFileRequest) Reset()

func (*AsyncAnnotateFileRequest) String

func (x *AsyncAnnotateFileRequest) String() string

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"`
	// contains filtered or unexported fields
}

The response for a single offline file annotation request.

func (*AsyncAnnotateFileResponse) Descriptor deprecated

This method has been deprecated.
func (*AsyncAnnotateFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use AsyncAnnotateFileResponse.ProtoReflect.Descriptor instead.

func (*AsyncAnnotateFileResponse) GetOutputConfig

func (x *AsyncAnnotateFileResponse) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileResponse) ProtoMessage

func (*AsyncAnnotateFileResponse) ProtoMessage()

func (*AsyncAnnotateFileResponse) ProtoReflect

func (*AsyncAnnotateFileResponse) Reset

func (x *AsyncAnnotateFileResponse) Reset()

func (*AsyncAnnotateFileResponse) String

func (x *AsyncAnnotateFileResponse) String() string

type AsyncBatchAnnotateFilesRequest

type AsyncBatchAnnotateFilesRequest struct {

	// Required. Individual async file annotation requests for this batch.
	Requests []*AsyncAnnotateFileRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// Optional. Target project and location to make a call.
	//
	// Format: `projects/{project-id}/locations/{location-id}`.
	//
	// If no parent is specified, a region will be chosen automatically.
	//
	// Supported location-ids:
	//     `us`: USA country only,
	//     `asia`: East asia areas, like Japan, Taiwan,
	//     `eu`: The European Union.
	//
	// Example: `projects/project-A/locations/eu`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*AsyncBatchAnnotateFilesRequest) Descriptor deprecated

This method has been deprecated.
func (*AsyncBatchAnnotateFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AsyncBatchAnnotateFilesRequest.ProtoReflect.Descriptor instead.

func (*AsyncBatchAnnotateFilesRequest) GetParent

func (x *AsyncBatchAnnotateFilesRequest) GetParent() string

func (*AsyncBatchAnnotateFilesRequest) GetRequests

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage()

func (*AsyncBatchAnnotateFilesRequest) ProtoReflect

func (*AsyncBatchAnnotateFilesRequest) Reset

func (x *AsyncBatchAnnotateFilesRequest) Reset()

func (*AsyncBatchAnnotateFilesRequest) String

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"`
	// contains filtered or unexported fields
}

Response to an async batch file annotation request.

func (*AsyncBatchAnnotateFilesResponse) Descriptor deprecated

This method has been deprecated.
func (*AsyncBatchAnnotateFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AsyncBatchAnnotateFilesResponse.ProtoReflect.Descriptor instead.

func (*AsyncBatchAnnotateFilesResponse) GetResponses

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage()

func (*AsyncBatchAnnotateFilesResponse) ProtoReflect

func (*AsyncBatchAnnotateFilesResponse) Reset

func (*AsyncBatchAnnotateFilesResponse) String

type AsyncBatchAnnotateImagesRequest

type AsyncBatchAnnotateImagesRequest struct {

	// Required. Individual image annotation requests for this batch.
	Requests []*AnnotateImageRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// Required. The desired output location and metadata (e.g. format).
	OutputConfig *OutputConfig `protobuf:"bytes,2,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// Optional. Target project and location to make a call.
	//
	// Format: `projects/{project-id}/locations/{location-id}`.
	//
	// If no parent is specified, a region will be chosen automatically.
	//
	// Supported location-ids:
	//     `us`: USA country only,
	//     `asia`: East asia areas, like Japan, Taiwan,
	//     `eu`: The European Union.
	//
	// Example: `projects/project-A/locations/eu`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

Request for async image annotation for a list of images.

func (*AsyncBatchAnnotateImagesRequest) Descriptor deprecated

This method has been deprecated.
func (*AsyncBatchAnnotateImagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use AsyncBatchAnnotateImagesRequest.ProtoReflect.Descriptor instead.

func (*AsyncBatchAnnotateImagesRequest) GetOutputConfig

func (x *AsyncBatchAnnotateImagesRequest) GetOutputConfig() *OutputConfig

func (*AsyncBatchAnnotateImagesRequest) GetParent

func (x *AsyncBatchAnnotateImagesRequest) GetParent() string

func (*AsyncBatchAnnotateImagesRequest) GetRequests

func (*AsyncBatchAnnotateImagesRequest) ProtoMessage

func (*AsyncBatchAnnotateImagesRequest) ProtoMessage()

func (*AsyncBatchAnnotateImagesRequest) ProtoReflect

func (*AsyncBatchAnnotateImagesRequest) Reset

func (*AsyncBatchAnnotateImagesRequest) String

type AsyncBatchAnnotateImagesResponse

type AsyncBatchAnnotateImagesResponse struct {

	// The output location and metadata from AsyncBatchAnnotateImagesRequest.
	OutputConfig *OutputConfig `protobuf:"bytes,1,opt,name=output_config,json=outputConfig,proto3" json:"output_config,omitempty"`
	// contains filtered or unexported fields
}

Response to an async batch image annotation request.

func (*AsyncBatchAnnotateImagesResponse) Descriptor deprecated

This method has been deprecated.
func (*AsyncBatchAnnotateImagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use AsyncBatchAnnotateImagesResponse.ProtoReflect.Descriptor instead.

func (*AsyncBatchAnnotateImagesResponse) GetOutputConfig

func (x *AsyncBatchAnnotateImagesResponse) GetOutputConfig() *OutputConfig

func (*AsyncBatchAnnotateImagesResponse) ProtoMessage

func (*AsyncBatchAnnotateImagesResponse) ProtoMessage()

func (*AsyncBatchAnnotateImagesResponse) ProtoReflect

func (*AsyncBatchAnnotateImagesResponse) Reset

func (*AsyncBatchAnnotateImagesResponse) String

type BatchAnnotateFilesRequest

type BatchAnnotateFilesRequest struct {

	// Required. The list of file annotation requests. Right now we support only
	// one AnnotateFileRequest in BatchAnnotateFilesRequest.
	Requests []*AnnotateFileRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// Optional. Target project and location to make a call.
	//
	// Format: `projects/{project-id}/locations/{location-id}`.
	//
	// If no parent is specified, a region will be chosen automatically.
	//
	// Supported location-ids:
	//     `us`: USA country only,
	//     `asia`: East asia areas, like Japan, Taiwan,
	//     `eu`: The European Union.
	//
	// Example: `projects/project-A/locations/eu`.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

A list of requests to annotate files using the BatchAnnotateFiles API.

func (*BatchAnnotateFilesRequest) Descriptor deprecated

This method has been deprecated.
func (*BatchAnnotateFilesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchAnnotateFilesRequest.ProtoReflect.Descriptor instead.

func (*BatchAnnotateFilesRequest) GetParent

func (x *BatchAnnotateFilesRequest) GetParent() string

func (*BatchAnnotateFilesRequest) GetRequests

func (x *BatchAnnotateFilesRequest) GetRequests() []*AnnotateFileRequest

func (*BatchAnnotateFilesRequest) ProtoMessage

func (*BatchAnnotateFilesRequest) ProtoMessage()

func (*BatchAnnotateFilesRequest) ProtoReflect

func (*BatchAnnotateFilesRequest) Reset

func (x *BatchAnnotateFilesRequest) Reset()

func (*BatchAnnotateFilesRequest) String

func (x *BatchAnnotateFilesRequest) String() string

type BatchAnnotateFilesResponse

type BatchAnnotateFilesResponse struct {

	// The list of file annotation responses, each response corresponding to each
	// AnnotateFileRequest in BatchAnnotateFilesRequest.
	Responses []*AnnotateFileResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

A list of file annotation responses.

func (*BatchAnnotateFilesResponse) Descriptor deprecated

This method has been deprecated.
func (*BatchAnnotateFilesResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchAnnotateFilesResponse.ProtoReflect.Descriptor instead.

func (*BatchAnnotateFilesResponse) GetResponses

func (x *BatchAnnotateFilesResponse) GetResponses() []*AnnotateFileResponse

func (*BatchAnnotateFilesResponse) ProtoMessage

func (*BatchAnnotateFilesResponse) ProtoMessage()

func (*BatchAnnotateFilesResponse) ProtoReflect

func (*BatchAnnotateFilesResponse) Reset

func (x *BatchAnnotateFilesResponse) Reset()

func (*BatchAnnotateFilesResponse) String

func (x *BatchAnnotateFilesResponse) String() string

type BatchAnnotateImagesRequest

type BatchAnnotateImagesRequest struct {

	// Required. Individual image annotation requests for this batch.
	Requests []*AnnotateImageRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
	// Optional. Target project and location to make a call.
	//
	// Format: `projects/{project-id}/locations/{location-id}`.
	//
	// If no parent is specified, a region will be chosen automatically.
	//
	// Supported location-ids:
	//     `us`: USA country only,
	//     `asia`: East asia areas, like Japan, Taiwan,
	//     `eu`: The European Union.
	//
	// Example: `projects/project-A/locations/eu`.
	Parent string `protobuf:"bytes,4,opt,name=parent,proto3" json:"parent,omitempty"`
	// contains filtered or unexported fields
}

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

func (*BatchAnnotateImagesRequest) Descriptor deprecated

This method has been deprecated.
func (*BatchAnnotateImagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use BatchAnnotateImagesRequest.ProtoReflect.Descriptor instead.

func (*BatchAnnotateImagesRequest) GetParent

func (x *BatchAnnotateImagesRequest) GetParent() string

func (*BatchAnnotateImagesRequest) GetRequests

func (*BatchAnnotateImagesRequest) ProtoMessage

func (*BatchAnnotateImagesRequest) ProtoMessage()

func (*BatchAnnotateImagesRequest) ProtoReflect

func (*BatchAnnotateImagesRequest) Reset

func (x *BatchAnnotateImagesRequest) Reset()

func (*BatchAnnotateImagesRequest) String

func (x *BatchAnnotateImagesRequest) String() string

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"`
	// contains filtered or unexported fields
}

Response to a batch image annotation request.

func (*BatchAnnotateImagesResponse) Descriptor deprecated

This method has been deprecated.
func (*BatchAnnotateImagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use BatchAnnotateImagesResponse.ProtoReflect.Descriptor instead.

func (*BatchAnnotateImagesResponse) GetResponses

func (*BatchAnnotateImagesResponse) ProtoMessage

func (*BatchAnnotateImagesResponse) ProtoMessage()

func (*BatchAnnotateImagesResponse) ProtoReflect

func (*BatchAnnotateImagesResponse) Reset

func (x *BatchAnnotateImagesResponse) Reset()

func (*BatchAnnotateImagesResponse) String

func (x *BatchAnnotateImagesResponse) String() string

type BatchOperationMetadata

type BatchOperationMetadata struct {

	// The current state of the batch operation.
	State BatchOperationMetadata_State `protobuf:"varint,1,opt,name=state,proto3,enum=google.cloud.vision.v1.BatchOperationMetadata_State" json:"state,omitempty"`
	// The time when the batch request was submitted to the server.
	SubmitTime *timestamppb.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 *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

This method has been deprecated.
func (*BatchOperationMetadata) Descriptor() ([]byte, []int)

Deprecated: Use BatchOperationMetadata.ProtoReflect.Descriptor instead.

func (*BatchOperationMetadata) GetEndTime

func (x *BatchOperationMetadata) GetEndTime() *timestamppb.Timestamp

func (*BatchOperationMetadata) GetState

func (*BatchOperationMetadata) GetSubmitTime

func (x *BatchOperationMetadata) GetSubmitTime() *timestamppb.Timestamp

func (*BatchOperationMetadata) ProtoMessage

func (*BatchOperationMetadata) ProtoMessage()

func (*BatchOperationMetadata) ProtoReflect

func (x *BatchOperationMetadata) ProtoReflect() protoreflect.Message

func (*BatchOperationMetadata) Reset

func (x *BatchOperationMetadata) Reset()

func (*BatchOperationMetadata) String

func (x *BatchOperationMetadata) String() string

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) Descriptor

func (BatchOperationMetadata_State) Enum

func (BatchOperationMetadata_State) EnumDescriptor deprecated

This method has been deprecated.
func (BatchOperationMetadata_State) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatchOperationMetadata_State.Descriptor instead.

func (BatchOperationMetadata_State) Number

func (BatchOperationMetadata_State) String

func (BatchOperationMetadata_State) Type

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 vertex 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 `` /* 133-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"`
	// contains filtered or unexported fields
}

Logical element on the page.

func (*Block) Descriptor deprecated

This method has been deprecated.
func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetBlockType

func (x *Block) GetBlockType() Block_BlockType

func (*Block) GetBoundingBox

func (x *Block) GetBoundingBox() *BoundingPoly

func (*Block) GetConfidence

func (x *Block) GetConfidence() float32

func (*Block) GetParagraphs

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

func (*Block) GetProperty

func (x *Block) GetProperty() *TextAnnotation_TextProperty

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

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) Descriptor

func (Block_BlockType) Enum

func (x Block_BlockType) Enum() *Block_BlockType

func (Block_BlockType) EnumDescriptor deprecated

This method has been deprecated.
func (Block_BlockType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Block_BlockType.Descriptor instead.

func (Block_BlockType) Number

func (Block_BlockType) String

func (x Block_BlockType) String() string

func (Block_BlockType) Type

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"`
	// contains filtered or unexported fields
}

A bounding polygon for the detected image annotation.

func (*BoundingPoly) Descriptor deprecated

This method has been deprecated.
func (*BoundingPoly) Descriptor() ([]byte, []int)

Deprecated: Use BoundingPoly.ProtoReflect.Descriptor instead.

func (*BoundingPoly) GetNormalizedVertices

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

func (*BoundingPoly) GetVertices

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

func (*BoundingPoly) ProtoMessage

func (*BoundingPoly) ProtoMessage()

func (*BoundingPoly) ProtoReflect

func (x *BoundingPoly) ProtoReflect() protoreflect.Message

func (*BoundingPoly) Reset

func (x *BoundingPoly) Reset()

func (*BoundingPoly) String

func (x *BoundingPoly) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*ColorInfo) Descriptor deprecated

This method has been deprecated.
func (*ColorInfo) Descriptor() ([]byte, []int)

Deprecated: Use ColorInfo.ProtoReflect.Descriptor instead.

func (*ColorInfo) GetColor

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

func (*ColorInfo) GetPixelFraction

func (x *ColorInfo) GetPixelFraction() float32

func (*ColorInfo) GetScore

func (x *ColorInfo) GetScore() float32

func (*ColorInfo) ProtoMessage

func (*ColorInfo) ProtoMessage()

func (*ColorInfo) ProtoReflect

func (x *ColorInfo) ProtoReflect() protoreflect.Message

func (*ColorInfo) Reset

func (x *ColorInfo) Reset()

func (*ColorInfo) String

func (x *ColorInfo) String() string

type CreateProductRequest

type CreateProductRequest struct {

	// Required. 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"`
	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `CreateProduct` method.

func (*CreateProductRequest) Descriptor deprecated

This method has been deprecated.
func (*CreateProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProductRequest.ProtoReflect.Descriptor instead.

func (*CreateProductRequest) GetParent

func (x *CreateProductRequest) GetParent() string

func (*CreateProductRequest) GetProduct

func (x *CreateProductRequest) GetProduct() *Product

func (*CreateProductRequest) GetProductId

func (x *CreateProductRequest) GetProductId() string

func (*CreateProductRequest) ProtoMessage

func (*CreateProductRequest) ProtoMessage()

func (*CreateProductRequest) ProtoReflect

func (x *CreateProductRequest) ProtoReflect() protoreflect.Message

func (*CreateProductRequest) Reset

func (x *CreateProductRequest) Reset()

func (*CreateProductRequest) String

func (x *CreateProductRequest) String() string

type CreateProductSetRequest

type CreateProductSetRequest struct {

	// Required. 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"`
	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `CreateProductSet` method.

func (*CreateProductSetRequest) Descriptor deprecated

This method has been deprecated.
func (*CreateProductSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateProductSetRequest.ProtoReflect.Descriptor instead.

func (*CreateProductSetRequest) GetParent

func (x *CreateProductSetRequest) GetParent() string

func (*CreateProductSetRequest) GetProductSet

func (x *CreateProductSetRequest) GetProductSet() *ProductSet

func (*CreateProductSetRequest) GetProductSetId

func (x *CreateProductSetRequest) GetProductSetId() string

func (*CreateProductSetRequest) ProtoMessage

func (*CreateProductSetRequest) ProtoMessage()

func (*CreateProductSetRequest) ProtoReflect

func (x *CreateProductSetRequest) ProtoReflect() protoreflect.Message

func (*CreateProductSetRequest) Reset

func (x *CreateProductSetRequest) Reset()

func (*CreateProductSetRequest) String

func (x *CreateProductSetRequest) String() string

type CreateReferenceImageRequest

type CreateReferenceImageRequest struct {

	// Required. 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"`
	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `CreateReferenceImage` method.

func (*CreateReferenceImageRequest) Descriptor deprecated

This method has been deprecated.
func (*CreateReferenceImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateReferenceImageRequest.ProtoReflect.Descriptor instead.

func (*CreateReferenceImageRequest) GetParent

func (x *CreateReferenceImageRequest) GetParent() string

func (*CreateReferenceImageRequest) GetReferenceImage

func (x *CreateReferenceImageRequest) GetReferenceImage() *ReferenceImage

func (*CreateReferenceImageRequest) GetReferenceImageId

func (x *CreateReferenceImageRequest) GetReferenceImageId() string

func (*CreateReferenceImageRequest) ProtoMessage

func (*CreateReferenceImageRequest) ProtoMessage()

func (*CreateReferenceImageRequest) ProtoReflect

func (*CreateReferenceImageRequest) Reset

func (x *CreateReferenceImageRequest) Reset()

func (*CreateReferenceImageRequest) String

func (x *CreateReferenceImageRequest) String() string

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.
	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"`
	// contains filtered or unexported fields
}

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

func (*CropHint) Descriptor deprecated

This method has been deprecated.
func (*CropHint) Descriptor() ([]byte, []int)

Deprecated: Use CropHint.ProtoReflect.Descriptor instead.

func (*CropHint) GetBoundingPoly

func (x *CropHint) GetBoundingPoly() *BoundingPoly

func (*CropHint) GetConfidence

func (x *CropHint) GetConfidence() float32

func (*CropHint) GetImportanceFraction

func (x *CropHint) GetImportanceFraction() float32

func (*CropHint) ProtoMessage

func (*CropHint) ProtoMessage()

func (*CropHint) ProtoReflect

func (x *CropHint) ProtoReflect() protoreflect.Message

func (*CropHint) Reset

func (x *CropHint) Reset()

func (*CropHint) String

func (x *CropHint) String() string

type CropHintsAnnotation

type CropHintsAnnotation struct {

	// Crop hint results.
	CropHints []*CropHint `protobuf:"bytes,1,rep,name=crop_hints,json=cropHints,proto3" json:"crop_hints,omitempty"`
	// contains filtered or unexported fields
}

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

func (*CropHintsAnnotation) Descriptor deprecated

This method has been deprecated.
func (*CropHintsAnnotation) Descriptor() ([]byte, []int)

Deprecated: Use CropHintsAnnotation.ProtoReflect.Descriptor instead.

func (*CropHintsAnnotation) GetCropHints

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

func (*CropHintsAnnotation) ProtoMessage

func (*CropHintsAnnotation) ProtoMessage()

func (*CropHintsAnnotation) ProtoReflect

func (x *CropHintsAnnotation) ProtoReflect() protoreflect.Message

func (*CropHintsAnnotation) Reset

func (x *CropHintsAnnotation) Reset()

func (*CropHintsAnnotation) String

func (x *CropHintsAnnotation) String() string

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"`
	// contains filtered or unexported fields
}

Parameters for crop hints annotation request.

func (*CropHintsParams) Descriptor deprecated

This method has been deprecated.
func (*CropHintsParams) Descriptor() ([]byte, []int)

Deprecated: Use CropHintsParams.ProtoReflect.Descriptor instead.

func (*CropHintsParams) GetAspectRatios

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

func (*CropHintsParams) ProtoMessage

func (*CropHintsParams) ProtoMessage()

func (*CropHintsParams) ProtoReflect

func (x *CropHintsParams) ProtoReflect() protoreflect.Message

func (*CropHintsParams) Reset

func (x *CropHintsParams) Reset()

func (*CropHintsParams) String

func (x *CropHintsParams) String() string

type DeleteProductRequest

type DeleteProductRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `DeleteProduct` method.

func (*DeleteProductRequest) Descriptor deprecated

This method has been deprecated.
func (*DeleteProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteProductRequest.ProtoReflect.Descriptor instead.

func (*DeleteProductRequest) GetName

func (x *DeleteProductRequest) GetName() string

func (*DeleteProductRequest) ProtoMessage

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) ProtoReflect

func (x *DeleteProductRequest) ProtoReflect() protoreflect.Message

func (*DeleteProductRequest) Reset

func (x *DeleteProductRequest) Reset()

func (*DeleteProductRequest) String

func (x *DeleteProductRequest) String() string

type DeleteProductSetRequest

type DeleteProductSetRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `DeleteProductSet` method.

func (*DeleteProductSetRequest) Descriptor deprecated

This method has been deprecated.
func (*DeleteProductSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteProductSetRequest.ProtoReflect.Descriptor instead.

func (*DeleteProductSetRequest) GetName

func (x *DeleteProductSetRequest) GetName() string

func (*DeleteProductSetRequest) ProtoMessage

func (*DeleteProductSetRequest) ProtoMessage()

func (*DeleteProductSetRequest) ProtoReflect

func (x *DeleteProductSetRequest) ProtoReflect() protoreflect.Message

func (*DeleteProductSetRequest) Reset

func (x *DeleteProductSetRequest) Reset()

func (*DeleteProductSetRequest) String

func (x *DeleteProductSetRequest) String() string

type DeleteReferenceImageRequest

type DeleteReferenceImageRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `DeleteReferenceImage` method.

func (*DeleteReferenceImageRequest) Descriptor deprecated

This method has been deprecated.
func (*DeleteReferenceImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteReferenceImageRequest.ProtoReflect.Descriptor instead.

func (*DeleteReferenceImageRequest) GetName

func (x *DeleteReferenceImageRequest) GetName() string

func (*DeleteReferenceImageRequest) ProtoMessage

func (*DeleteReferenceImageRequest) ProtoMessage()

func (*DeleteReferenceImageRequest) ProtoReflect

func (*DeleteReferenceImageRequest) Reset

func (x *DeleteReferenceImageRequest) Reset()

func (*DeleteReferenceImageRequest) String

func (x *DeleteReferenceImageRequest) String() string

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"`
	// contains filtered or unexported fields
}

Set of dominant colors and their corresponding scores.

func (*DominantColorsAnnotation) Descriptor deprecated

This method has been deprecated.
func (*DominantColorsAnnotation) Descriptor() ([]byte, []int)

Deprecated: Use DominantColorsAnnotation.ProtoReflect.Descriptor instead.

func (*DominantColorsAnnotation) GetColors

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

func (*DominantColorsAnnotation) ProtoMessage

func (*DominantColorsAnnotation) ProtoMessage()

func (*DominantColorsAnnotation) ProtoReflect

func (x *DominantColorsAnnotation) ProtoReflect() protoreflect.Message

func (*DominantColorsAnnotation) Reset

func (x *DominantColorsAnnotation) Reset()

func (*DominantColorsAnnotation) String

func (x *DominantColorsAnnotation) String() string

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].
	//
	// Deprecated: Do not use.
	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"`
	// contains filtered or unexported fields
}

Set of detected entity features.

func (*EntityAnnotation) Descriptor deprecated

This method has been deprecated.
func (*EntityAnnotation) Descriptor() ([]byte, []int)

Deprecated: Use EntityAnnotation.ProtoReflect.Descriptor instead.

func (*EntityAnnotation) GetBoundingPoly

func (x *EntityAnnotation) GetBoundingPoly() *BoundingPoly

func (*EntityAnnotation) GetConfidence deprecated

This method has been deprecated.
func (x *EntityAnnotation) GetConfidence() float32

Deprecated: Do not use.

func (*EntityAnnotation) GetDescription

func (x *EntityAnnotation) GetDescription() string

func (*EntityAnnotation) GetLocale

func (x *EntityAnnotation) GetLocale() string

func (*EntityAnnotation) GetLocations

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

func (*EntityAnnotation) GetMid

func (x *EntityAnnotation) GetMid() string

func (*EntityAnnotation) GetProperties

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

func (*EntityAnnotation) GetScore

func (x *EntityAnnotation) GetScore() float32

func (*EntityAnnotation) GetTopicality

func (x *EntityAnnotation) GetTopicality() float32

func (*EntityAnnotation) ProtoMessage

func (*EntityAnnotation) ProtoMessage()

func (*EntityAnnotation) ProtoReflect

func (x *EntityAnnotation) ProtoReflect() protoreflect.Message

func (*EntityAnnotation) Reset

func (x *EntityAnnotation) Reset()

func (*EntityAnnotation) String

func (x *EntityAnnotation) String() string

type FaceAnnotation

type FaceAnnotation struct {

	// The bounding polygon around the face. The coordinates of the bounding box
	// are in the original image's scale.
	// 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 `` /* 140-byte string literal not displayed */
	// Sorrow likelihood.
	SorrowLikelihood Likelihood `` /* 150-byte string literal not displayed */
	// Anger likelihood.
	AngerLikelihood Likelihood `` /* 147-byte string literal not displayed */
	// Surprise likelihood.
	SurpriseLikelihood Likelihood `` /* 156-byte string literal not displayed */
	// Under-exposed likelihood.
	UnderExposedLikelihood Likelihood `` /* 170-byte string literal not displayed */
	// Blurred likelihood.
	BlurredLikelihood Likelihood `` /* 153-byte string literal not displayed */
	// Headwear likelihood.
	HeadwearLikelihood Likelihood `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

A face annotation object contains the results of face detection.

func (*FaceAnnotation) Descriptor deprecated

This method has been deprecated.
func (*FaceAnnotation) Descriptor() ([]byte, []int)

Deprecated: Use FaceAnnotation.ProtoReflect.Descriptor instead.

func (*FaceAnnotation) GetAngerLikelihood

func (x *FaceAnnotation) GetAngerLikelihood() Likelihood

func (*FaceAnnotation) GetBlurredLikelihood

func (x *FaceAnnotation) GetBlurredLikelihood() Likelihood

func (*FaceAnnotation) GetBoundingPoly

func (x *FaceAnnotation) GetBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetDetectionConfidence

func (x *FaceAnnotation) GetDetectionConfidence() float32

func (*FaceAnnotation) GetFdBoundingPoly

func (x *FaceAnnotation) GetFdBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetHeadwearLikelihood

func (x *FaceAnnotation) GetHeadwearLikelihood() Likelihood

func (*FaceAnnotation) GetJoyLikelihood

func (x *FaceAnnotation) GetJoyLikelihood() Likelihood

func (*FaceAnnotation) GetLandmarkingConfidence

func (x *FaceAnnotation) GetLandmarkingConfidence() float32

func (*FaceAnnotation) GetLandmarks

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

func (*FaceAnnotation) GetPanAngle

func (x *FaceAnnotation) GetPanAngle() float32

func (*FaceAnnotation) GetRollAngle

func (x *FaceAnnotation) GetRollAngle() float32

func (*FaceAnnotation) GetSorrowLikelihood

func (x *FaceAnnotation) GetSorrowLikelihood() Likelihood

func (*FaceAnnotation) GetSurpriseLikelihood

func (x *FaceAnnotation) GetSurpriseLikelihood() Likelihood

func (*FaceAnnotation) GetTiltAngle

func (x *FaceAnnotation) GetTiltAngle() float32

func (*FaceAnnotation) GetUnderExposedLikelihood

func (x *FaceAnnotation) GetUnderExposedLikelihood() Likelihood

func (*FaceAnnotation) ProtoMessage

func (*FaceAnnotation) ProtoMessage()

func (*FaceAnnotation) ProtoReflect

func (x *FaceAnnotation) ProtoReflect() protoreflect.Message

func (*FaceAnnotation) Reset

func (x *FaceAnnotation) Reset()

func (*FaceAnnotation) String

func (x *FaceAnnotation) String() string

type FaceAnnotation_Landmark

type FaceAnnotation_Landmark struct {

	// Face landmark type.
	Type FaceAnnotation_Landmark_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.cloud.vision.v1.FaceAnnotation_Landmark_Type" json:"type,omitempty"`
	// Face landmark position.
	Position *Position `protobuf:"bytes,4,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

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

func (*FaceAnnotation_Landmark) Descriptor deprecated

This method has been deprecated.
func (*FaceAnnotation_Landmark) Descriptor() ([]byte, []int)

Deprecated: Use FaceAnnotation_Landmark.ProtoReflect.Descriptor instead.

func (*FaceAnnotation_Landmark) GetPosition

func (x *FaceAnnotation_Landmark) GetPosition() *Position

func (*FaceAnnotation_Landmark) GetType

func (*FaceAnnotation_Landmark) ProtoMessage

func (*FaceAnnotation_Landmark) ProtoMessage()

func (*FaceAnnotation_Landmark) ProtoReflect

func (x *FaceAnnotation_Landmark) ProtoReflect() protoreflect.Message

func (*FaceAnnotation_Landmark) Reset

func (x *FaceAnnotation_Landmark) Reset()

func (*FaceAnnotation_Landmark) String

func (x *FaceAnnotation_Landmark) String() string

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
	// Left cheek center.
	FaceAnnotation_Landmark_LEFT_CHEEK_CENTER FaceAnnotation_Landmark_Type = 35
	// Right cheek center.
	FaceAnnotation_Landmark_RIGHT_CHEEK_CENTER FaceAnnotation_Landmark_Type = 36
)

func (FaceAnnotation_Landmark_Type) Descriptor

func (FaceAnnotation_Landmark_Type) Enum

func (FaceAnnotation_Landmark_Type) EnumDescriptor deprecated

This method has been deprecated.
func (FaceAnnotation_Landmark_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FaceAnnotation_Landmark_Type.Descriptor instead.

func (FaceAnnotation_Landmark_Type) Number

func (FaceAnnotation_Landmark_Type) String

func (FaceAnnotation_Landmark_Type) Type

type Feature

type Feature struct {

	// The feature type.
	Type Feature_Type `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.vision.v1.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"`
	// contains filtered or unexported fields
}

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 deprecated

This method has been deprecated.
func (*Feature) Descriptor() ([]byte, []int)

Deprecated: Use Feature.ProtoReflect.Descriptor instead.

func (*Feature) GetMaxResults

func (x *Feature) GetMaxResults() int32

func (*Feature) GetModel

func (x *Feature) GetModel() string

func (*Feature) GetType

func (x *Feature) GetType() Feature_Type

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) ProtoReflect

func (x *Feature) ProtoReflect() protoreflect.Message

func (*Feature) Reset

func (x *Feature) Reset()

func (*Feature) String

func (x *Feature) String() string

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) Descriptor

func (Feature_Type) Enum

func (x Feature_Type) Enum() *Feature_Type

func (Feature_Type) EnumDescriptor deprecated

This method has been deprecated.
func (Feature_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Feature_Type.Descriptor instead.

func (Feature_Type) Number

func (Feature_Type) String

func (x Feature_Type) String() string

func (Feature_Type) Type

type GcsDestination

type GcsDestination struct {

	// Google Cloud Storage URI prefix where the results will be stored. Results
	// will be in JSON format and preceded by its corresponding input URI prefix.
	// This field can either represent a gcs file prefix or gcs directory. In
	// either case, the uri should be unique because in order to get all of the
	// output files, you will need to do a wildcard gcs search on the uri prefix
	// you provide.
	//
	// Examples:
	//
	// *    File Prefix: gs://bucket-name/here/filenameprefix   The output files
	// will be created in gs://bucket-name/here/ and the names of the
	// output files will begin with "filenameprefix".
	//
	// *    Directory Prefix: gs://bucket-name/some/location/   The output files
	// will be created in gs://bucket-name/some/location/ and the names of the
	// output files could be anything because there was no filename prefix
	// specified.
	//
	// 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"`
	// contains filtered or unexported fields
}

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

func (*GcsDestination) Descriptor deprecated

This method has been deprecated.
func (*GcsDestination) Descriptor() ([]byte, []int)

Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.

func (*GcsDestination) GetUri

func (x *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) ProtoReflect

func (x *GcsDestination) ProtoReflect() protoreflect.Message

func (*GcsDestination) Reset

func (x *GcsDestination) Reset()

func (*GcsDestination) String

func (x *GcsDestination) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*GcsSource) Descriptor deprecated

This method has been deprecated.
func (*GcsSource) Descriptor() ([]byte, []int)

Deprecated: Use GcsSource.ProtoReflect.Descriptor instead.

func (*GcsSource) GetUri

func (x *GcsSource) GetUri() string

func (*GcsSource) ProtoMessage

func (*GcsSource) ProtoMessage()

func (*GcsSource) ProtoReflect

func (x *GcsSource) ProtoReflect() protoreflect.Message

func (*GcsSource) Reset

func (x *GcsSource) Reset()

func (*GcsSource) String

func (x *GcsSource) String() string

type GetProductRequest

type GetProductRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `GetProduct` method.

func (*GetProductRequest) Descriptor deprecated

This method has been deprecated.
func (*GetProductRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.

func (*GetProductRequest) GetName

func (x *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) ProtoReflect

func (x *GetProductRequest) ProtoReflect() protoreflect.Message

func (*GetProductRequest) Reset

func (x *GetProductRequest) Reset()

func (*GetProductRequest) String

func (x *GetProductRequest) String() string

type GetProductSetRequest

type GetProductSetRequest struct {

	// Required. Resource name of the ProductSet to get.
	//
	// Format is:
	// `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

Request message for the `GetProductSet` method.

func (*GetProductSetRequest) Descriptor deprecated

This method has been deprecated.
func (*GetProductSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProductSetRequest.ProtoReflect.Descriptor instead.

func (*GetProductSetRequest) GetName

func (x *GetProductSetRequest) GetName() string

func (*GetProductSetRequest) ProtoMessage

func (*GetProductSetRequest) ProtoMessage()

func (*GetProductSetRequest) ProtoReflect

func (x *GetProductSetRequest) ProtoReflect() protoreflect.Message

func (*GetProductSetRequest) Reset

func (x *GetProductSetRequest) Reset()

func (*GetProductSetRequest) String

func (x *GetProductSetRequest) String() string

type GetReferenceImageRequest

type GetReferenceImageRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `GetReferenceImage` method.

func (*GetReferenceImageRequest) Descriptor deprecated

This method has been deprecated.
func (*GetReferenceImageRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetReferenceImageRequest.ProtoReflect.Descriptor instead.

func (*GetReferenceImageRequest) GetName

func (x *GetReferenceImageRequest) GetName() string

func (*GetReferenceImageRequest) ProtoMessage

func (*GetReferenceImageRequest) ProtoMessage()

func (*GetReferenceImageRequest) ProtoReflect

func (x *GetReferenceImageRequest) ProtoReflect() protoreflect.Message

func (*GetReferenceImageRequest) Reset

func (x *GetReferenceImageRequest) Reset()

func (*GetReferenceImageRequest) String

func (x *GetReferenceImageRequest) String() string

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.
	//
	// Currently, this field only works for BatchAnnotateImages requests. It does
	// not work for AsyncBatchAnnotateImages requests.
	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"`
	// contains filtered or unexported fields
}

Client image to perform Google Cloud Vision API tasks over.

func (*Image) Descriptor deprecated

This method has been deprecated.
func (*Image) Descriptor() ([]byte, []int)

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetContent

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

func (*Image) GetSource

func (x *Image) GetSource() *ImageSource

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

func (x *Image) ProtoReflect() protoreflect.Message

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

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"`
	// contains filtered or unexported fields
}

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 deprecated

This method has been deprecated.
func (*ImageAnnotationContext) Descriptor() ([]byte, []int)

Deprecated: Use ImageAnnotationContext.ProtoReflect.Descriptor instead.

func (*ImageAnnotationContext) GetPageNumber

func (x *ImageAnnotationContext) GetPageNumber() int32

func (*ImageAnnotationContext) GetUri

func (x *ImageAnnotationContext) GetUri() string

func (*ImageAnnotationContext) ProtoMessage

func (*ImageAnnotationContext) ProtoMessage()

func (*ImageAnnotationContext) ProtoReflect

func (x *ImageAnnotationContext) ProtoReflect() protoreflect.Message

func (*ImageAnnotationContext) Reset

func (x *ImageAnnotationContext) Reset()

func (*ImageAnnotationContext) String

func (x *ImageAnnotationContext) String() string

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)
	// Service that performs image detection and annotation for a batch of files.
	// Now only "application/pdf", "image/tiff" and "image/gif" are supported.
	//
	// This service will extract at most 5 (customers can specify which 5 in
	// AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
	// file provided and perform detection and annotation for each image
	// extracted.
	BatchAnnotateFiles(ctx context.Context, in *BatchAnnotateFilesRequest, opts ...grpc.CallOption) (*BatchAnnotateFilesResponse, error)
	// Run asynchronous image detection and annotation for a list of images.
	//
	// Progress and results can be retrieved through the
	// `google.longrunning.Operations` interface.
	// `Operation.metadata` contains `OperationMetadata` (metadata).
	// `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
	//
	// This service will write image annotation outputs to json files in customer
	// GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
	AsyncBatchAnnotateImages(ctx context.Context, in *AsyncBatchAnnotateImagesRequest, opts ...grpc.CallOption) (*longrunning.Operation, 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.

type ImageAnnotatorServer

type ImageAnnotatorServer interface {
	// Run image detection and annotation for a batch of images.
	BatchAnnotateImages(context.Context, *BatchAnnotateImagesRequest) (*BatchAnnotateImagesResponse, error)
	// Service that performs image detection and annotation for a batch of files.
	// Now only "application/pdf", "image/tiff" and "image/gif" are supported.
	//
	// This service will extract at most 5 (customers can specify which 5 in
	// AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each
	// file provided and perform detection and annotation for each image
	// extracted.
	BatchAnnotateFiles(context.Context, *BatchAnnotateFilesRequest) (*BatchAnnotateFilesResponse, error)
	// Run asynchronous image detection and annotation for a list of images.
	//
	// Progress and results can be retrieved through the
	// `google.longrunning.Operations` interface.
	// `Operation.metadata` contains `OperationMetadata` (metadata).
	// `Operation.response` contains `AsyncBatchAnnotateImagesResponse` (results).
	//
	// This service will write image annotation outputs to json files in customer
	// GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
	AsyncBatchAnnotateImages(context.Context, *AsyncBatchAnnotateImagesRequest) (*longrunning.Operation, 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](https://cloud.google.com/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"`
	// Parameters for text detection and document text detection.
	TextDetectionParams *TextDetectionParams `protobuf:"bytes,12,opt,name=text_detection_params,json=textDetectionParams,proto3" json:"text_detection_params,omitempty"`
	// contains filtered or unexported fields
}

Image context and/or feature-specific parameters.

func (*ImageContext) Descriptor deprecated

This method has been deprecated.
func (*ImageContext) Descriptor() ([]byte, []int)

Deprecated: Use ImageContext.ProtoReflect.Descriptor instead.

func (*ImageContext) GetCropHintsParams

func (x *ImageContext) GetCropHintsParams() *CropHintsParams

func (*ImageContext) GetLanguageHints

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

func (*ImageContext) GetLatLongRect

func (x *ImageContext) GetLatLongRect() *LatLongRect

func (*ImageContext) GetProductSearchParams

func (x *ImageContext) GetProductSearchParams() *ProductSearchParams

func (*ImageContext) GetTextDetectionParams

func (x *ImageContext) GetTextDetectionParams() *TextDetectionParams

func (*ImageContext) GetWebDetectionParams

func (x *ImageContext) GetWebDetectionParams() *WebDetectionParams

func (*ImageContext) ProtoMessage

func (*ImageContext) ProtoMessage()

func (*ImageContext) ProtoReflect

func (x *ImageContext) ProtoReflect() protoreflect.Message

func (*ImageContext) Reset

func (x *ImageContext) Reset()

func (*ImageContext) String

func (x *ImageContext) String() string

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"`
	// contains filtered or unexported fields
}

Stores image properties, such as dominant colors.

func (*ImageProperties) Descriptor deprecated

This method has been deprecated.
func (*ImageProperties) Descriptor() ([]byte, []int)

Deprecated: Use ImageProperties.ProtoReflect.Descriptor instead.

func (*ImageProperties) GetDominantColors

func (x *ImageProperties) GetDominantColors() *DominantColorsAnnotation

func (*ImageProperties) ProtoMessage

func (*ImageProperties) ProtoMessage()

func (*ImageProperties) ProtoReflect

func (x *ImageProperties) ProtoReflect() protoreflect.Message

func (*ImageProperties) Reset

func (x *ImageProperties) Reset()

func (*ImageProperties) String

func (x *ImageProperties) String() string

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"`
	// contains filtered or unexported fields
}

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

func (*ImageSource) Descriptor deprecated

This method has been deprecated.
func (*ImageSource) Descriptor() ([]byte, []int)

Deprecated: Use ImageSource.ProtoReflect.Descriptor instead.

func (*ImageSource) GetGcsImageUri

func (x *ImageSource) GetGcsImageUri() string

func (*ImageSource) GetImageUri

func (x *ImageSource) GetImageUri() string

func (*ImageSource) ProtoMessage

func (*ImageSource) ProtoMessage()

func (*ImageSource) ProtoReflect

func (x *ImageSource) ProtoReflect() protoreflect.Message

func (*ImageSource) Reset

func (x *ImageSource) Reset()

func (*ImageSource) String

func (x *ImageSource) String() string

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 8 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
	//
	// The `image-uri`, `product-set-id`, `product-id`, and `product-category`
	// columns are required. All other columns are optional.
	//
	// If the `ProductSet` or `Product` specified by the `product-set-id` and
	// `product-id` values does not exist, then the system will create a new
	// `ProductSet` or `Product` for the image. In this case, the
	// `product-display-name` column refers to
	// [display_name][google.cloud.vision.v1.Product.display_name], the
	// `product-category` column refers to
	// [product_category][google.cloud.vision.v1.Product.product_category], and the
	// `labels` column refers to [product_labels][google.cloud.vision.v1.Product.product_labels].
	//
	// The `image-id` column is optional but must be unique if provided. If it is
	// empty, the system will automatically assign a unique id to the image.
	//
	// The `product-display-name` column is optional. If it is empty, the system
	// sets the [display_name][google.cloud.vision.v1.Product.display_name] field for the product to a
	// space (" "). You can update the `display_name` later by using the API.
	//
	// If a `Product` with the specified `product-id` already exists, then the
	// system ignores the `product-display-name`, `product-category`, and `labels`
	// columns.
	//
	// The `labels` column (optional) is a line containing a list of
	// comma-separated key-value pairs, in the following format:
	//
	//     "key_1=value_1,key_2=value_2,...,key_n=value_n"
	//
	// The `bounding-poly` column (optional) identifies one region of
	// interest from the image in the same manner as `CreateReferenceImage`. If
	// you do not specify the `bounding-poly` column, then the system will try to
	// detect regions of interest automatically.
	//
	// At most one `bounding-poly` column is allowed per line. If the image
	// contains multiple regions of interest, add a line to the CSV file that
	// includes the same product information, and the `bounding-poly` values for
	// each region of interest.
	//
	// The `bounding-poly` column must contain an even number of comma-separated
	// numbers, in the format "p1_x,p1_y,p2_x,p2_y,...,pn_x,pn_y". Use
	// non-negative integers for absolute bounding polygons, and float values
	// in [0, 1] for normalized bounding polygons.
	//
	// The system will resize the image if the image resolution is too
	// large to process (larger than 20MP).
	CsvFileUri string `protobuf:"bytes,1,opt,name=csv_file_uri,json=csvFileUri,proto3" json:"csv_file_uri,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ImportProductSetsGcsSource) Descriptor deprecated

This method has been deprecated.
func (*ImportProductSetsGcsSource) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductSetsGcsSource.ProtoReflect.Descriptor instead.

func (*ImportProductSetsGcsSource) GetCsvFileUri

func (x *ImportProductSetsGcsSource) GetCsvFileUri() string

func (*ImportProductSetsGcsSource) ProtoMessage

func (*ImportProductSetsGcsSource) ProtoMessage()

func (*ImportProductSetsGcsSource) ProtoReflect

func (*ImportProductSetsGcsSource) Reset

func (x *ImportProductSetsGcsSource) Reset()

func (*ImportProductSetsGcsSource) String

func (x *ImportProductSetsGcsSource) String() string

type ImportProductSetsInputConfig

type ImportProductSetsInputConfig struct {

	// The source of the input.
	//
	// Types that are assignable to Source:
	//	*ImportProductSetsInputConfig_GcsSource
	Source isImportProductSetsInputConfig_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

The input content for the `ImportProductSets` method.

func (*ImportProductSetsInputConfig) Descriptor deprecated

This method has been deprecated.
func (*ImportProductSetsInputConfig) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductSetsInputConfig.ProtoReflect.Descriptor instead.

func (*ImportProductSetsInputConfig) GetGcsSource

func (*ImportProductSetsInputConfig) GetSource

func (m *ImportProductSetsInputConfig) GetSource() isImportProductSetsInputConfig_Source

func (*ImportProductSetsInputConfig) ProtoMessage

func (*ImportProductSetsInputConfig) ProtoMessage()

func (*ImportProductSetsInputConfig) ProtoReflect

func (*ImportProductSetsInputConfig) Reset

func (x *ImportProductSetsInputConfig) Reset()

func (*ImportProductSetsInputConfig) String

type ImportProductSetsInputConfig_GcsSource

type ImportProductSetsInputConfig_GcsSource struct {
	// The Google Cloud Storage location for a csv file which preserves a list
	// of ImportProductSetRequests in each line.
	GcsSource *ImportProductSetsGcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}

type ImportProductSetsRequest

type ImportProductSetsRequest struct {

	// Required. 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"`
	// Required. The input content for the list of requests.
	InputConfig *ImportProductSetsInputConfig `protobuf:"bytes,2,opt,name=input_config,json=inputConfig,proto3" json:"input_config,omitempty"`
	// contains filtered or unexported fields
}

Request message for the `ImportProductSets` method.

func (*ImportProductSetsRequest) Descriptor deprecated

This method has been deprecated.
func (*ImportProductSetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductSetsRequest.ProtoReflect.Descriptor instead.

func (*ImportProductSetsRequest) GetInputConfig

func (*ImportProductSetsRequest) GetParent

func (x *ImportProductSetsRequest) GetParent() string

func (*ImportProductSetsRequest) ProtoMessage

func (*ImportProductSetsRequest) ProtoMessage()

func (*ImportProductSetsRequest) ProtoReflect

func (x *ImportProductSetsRequest) ProtoReflect() protoreflect.Message

func (*ImportProductSetsRequest) Reset

func (x *ImportProductSetsRequest) Reset()

func (*ImportProductSetsRequest) String

func (x *ImportProductSetsRequest) String() string

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"`
	// contains filtered or unexported fields
}

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 deprecated

This method has been deprecated.
func (*ImportProductSetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ImportProductSetsResponse.ProtoReflect.Descriptor instead.

func (*ImportProductSetsResponse) GetReferenceImages

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

func (*ImportProductSetsResponse) GetStatuses

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

func (*ImportProductSetsResponse) ProtoMessage

func (*ImportProductSetsResponse) ProtoMessage()

func (*ImportProductSetsResponse) ProtoReflect

func (*ImportProductSetsResponse) Reset

func (x *ImportProductSetsResponse) Reset()

func (*ImportProductSetsResponse) String

func (x *ImportProductSetsResponse) String() string

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"`
	// File content, represented as a stream of bytes.
	// Note: As with all `bytes` fields, protobuffers use a pure binary
	// representation, whereas JSON representations use base64.
	//
	// Currently, this field only works for BatchAnnotateFiles requests. It does
	// not work for AsyncBatchAnnotateFiles requests.
	Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// The type of the file. Currently only "application/pdf", "image/tiff" and
	// "image/gif" are supported. Wildcards are not supported.
	MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
	// contains filtered or unexported fields
}

The desired input location and metadata.

func (*InputConfig) Descriptor deprecated

This method has been deprecated.
func (*InputConfig) Descriptor() ([]byte, []int)

Deprecated: Use InputConfig.ProtoReflect.Descriptor instead.

func (*InputConfig) GetContent

func (x *InputConfig) GetContent() []byte

func (*InputConfig) GetGcsSource

func (x *InputConfig) GetGcsSource() *GcsSource

func (*InputConfig) GetMimeType

func (x *InputConfig) GetMimeType() string

func (*InputConfig) ProtoMessage

func (*InputConfig) ProtoMessage()

func (*InputConfig) ProtoReflect

func (x *InputConfig) ProtoReflect() protoreflect.Message

func (*InputConfig) Reset

func (x *InputConfig) Reset()

func (*InputConfig) String

func (x *InputConfig) String() string

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"`
	// contains filtered or unexported fields
}

Rectangle determined by min and max `LatLng` pairs.

func (*LatLongRect) Descriptor deprecated

This method has been deprecated.
func (*LatLongRect) Descriptor() ([]byte, []int)

Deprecated: Use LatLongRect.ProtoReflect.Descriptor instead.

func (*LatLongRect) GetMaxLatLng

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

func (*LatLongRect) GetMinLatLng

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

func (*LatLongRect) ProtoMessage

func (*LatLongRect) ProtoMessage()

func (*LatLongRect) ProtoReflect

func (x *LatLongRect) ProtoReflect() protoreflect.Message

func (*LatLongRect) Reset

func (x *LatLongRect) Reset()

func (*LatLongRect) String

func (x *LatLongRect) String() string

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.
	Likelihood_VERY_UNLIKELY Likelihood = 1
	// It is unlikely.
	Likelihood_UNLIKELY Likelihood = 2
	// It is possible.
	Likelihood_POSSIBLE Likelihood = 3
	// It is likely.
	Likelihood_LIKELY Likelihood = 4
	// It is very likely.
	Likelihood_VERY_LIKELY Likelihood = 5
)

func (Likelihood) Descriptor

func (Likelihood) Descriptor() protoreflect.EnumDescriptor

func (Likelihood) Enum

func (x Likelihood) Enum() *Likelihood

func (Likelihood) EnumDescriptor deprecated

This method has been deprecated.
func (Likelihood) EnumDescriptor() ([]byte, []int)

Deprecated: Use Likelihood.Descriptor instead.

func (Likelihood) Number

func (x Likelihood) Number() protoreflect.EnumNumber

func (Likelihood) String

func (x Likelihood) String() string

func (Likelihood) Type

type ListProductSetsRequest

type ListProductSetsRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `ListProductSets` method.

func (*ListProductSetsRequest) Descriptor deprecated

This method has been deprecated.
func (*ListProductSetsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProductSetsRequest.ProtoReflect.Descriptor instead.

func (*ListProductSetsRequest) GetPageSize

func (x *ListProductSetsRequest) GetPageSize() int32

func (*ListProductSetsRequest) GetPageToken

func (x *ListProductSetsRequest) GetPageToken() string

func (*ListProductSetsRequest) GetParent

func (x *ListProductSetsRequest) GetParent() string

func (*ListProductSetsRequest) ProtoMessage

func (*ListProductSetsRequest) ProtoMessage()

func (*ListProductSetsRequest) ProtoReflect

func (x *ListProductSetsRequest) ProtoReflect() protoreflect.Message

func (*ListProductSetsRequest) Reset

func (x *ListProductSetsRequest) Reset()

func (*ListProductSetsRequest) String

func (x *ListProductSetsRequest) String() string

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"`
	// contains filtered or unexported fields
}

Response message for the `ListProductSets` method.

func (*ListProductSetsResponse) Descriptor deprecated

This method has been deprecated.
func (*ListProductSetsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProductSetsResponse.ProtoReflect.Descriptor instead.

func (*ListProductSetsResponse) GetNextPageToken

func (x *ListProductSetsResponse) GetNextPageToken() string

func (*ListProductSetsResponse) GetProductSets

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

func (*ListProductSetsResponse) ProtoMessage

func (*ListProductSetsResponse) ProtoMessage()

func (*ListProductSetsResponse) ProtoReflect

func (x *ListProductSetsResponse) ProtoReflect() protoreflect.Message

func (*ListProductSetsResponse) Reset

func (x *ListProductSetsResponse) Reset()

func (*ListProductSetsResponse) String

func (x *ListProductSetsResponse) String() string

type ListProductsInProductSetRequest

type ListProductsInProductSetRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetRequest) Descriptor deprecated

This method has been deprecated.
func (*ListProductsInProductSetRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsInProductSetRequest.ProtoReflect.Descriptor instead.

func (*ListProductsInProductSetRequest) GetName

func (*ListProductsInProductSetRequest) GetPageSize

func (x *ListProductsInProductSetRequest) GetPageSize() int32

func (*ListProductsInProductSetRequest) GetPageToken

func (x *ListProductsInProductSetRequest) GetPageToken() string

func (*ListProductsInProductSetRequest) ProtoMessage

func (*ListProductsInProductSetRequest) ProtoMessage()

func (*ListProductsInProductSetRequest) ProtoReflect

func (*ListProductsInProductSetRequest) Reset

func (*ListProductsInProductSetRequest) String

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"`
	// contains filtered or unexported fields
}

Response message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetResponse) Descriptor deprecated

This method has been deprecated.
func (*ListProductsInProductSetResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsInProductSetResponse.ProtoReflect.Descriptor instead.

func (*ListProductsInProductSetResponse) GetNextPageToken

func (x *ListProductsInProductSetResponse) GetNextPageToken() string

func (*ListProductsInProductSetResponse) GetProducts

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

func (*ListProductsInProductSetResponse) ProtoMessage

func (*ListProductsInProductSetResponse) ProtoMessage()

func (*ListProductsInProductSetResponse) ProtoReflect

func (*ListProductsInProductSetResponse) Reset

func (*ListProductsInProductSetResponse) String

type ListProductsRequest

type ListProductsRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `ListProducts` method.

func (*ListProductsRequest) Descriptor deprecated

This method has been deprecated.
func (*ListProductsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.

func (*ListProductsRequest) GetPageSize

func (x *ListProductsRequest) GetPageSize() int32

func (*ListProductsRequest) GetPageToken

func (x *ListProductsRequest) GetPageToken() string

func (*ListProductsRequest) GetParent

func (x *ListProductsRequest) GetParent() string

func (*ListProductsRequest) ProtoMessage

func (*ListProductsRequest) ProtoMessage()

func (*ListProductsRequest) ProtoReflect

func (x *ListProductsRequest) ProtoReflect() protoreflect.Message

func (*ListProductsRequest) Reset

func (x *ListProductsRequest) Reset()

func (*ListProductsRequest) String

func (x *ListProductsRequest) String() string

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"`
	// contains filtered or unexported fields
}

Response message for the `ListProducts` method.

func (*ListProductsResponse) Descriptor deprecated

This method has been deprecated.
func (*ListProductsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.

func (*ListProductsResponse) GetNextPageToken

func (x *ListProductsResponse) GetNextPageToken() string

func (*ListProductsResponse) GetProducts

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

func (*ListProductsResponse) ProtoMessage

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) ProtoReflect

func (x *ListProductsResponse) ProtoReflect() protoreflect.Message

func (*ListProductsResponse) Reset

func (x *ListProductsResponse) Reset()

func (*ListProductsResponse) String

func (x *ListProductsResponse) String() string

type ListReferenceImagesRequest

type ListReferenceImagesRequest struct {

	// Required. 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"`
	// contains filtered or unexported fields
}

Request message for the `ListReferenceImages` method.

func (*ListReferenceImagesRequest) Descriptor deprecated

This method has been deprecated.
func (*ListReferenceImagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListReferenceImagesRequest.ProtoReflect.Descriptor instead.

func (*ListReferenceImagesRequest) GetPageSize

func (x *ListReferenceImagesRequest) GetPageSize() int32

func (*ListReferenceImagesRequest) GetPageToken

func (x *ListReferenceImagesRequest) GetPageToken() string

func (*ListReferenceImagesRequest) GetParent

func (x *ListReferenceImagesRequest) GetParent() string

func (*ListReferenceImagesRequest) ProtoMessage

func (*ListReferenceImagesRequest) ProtoMessage()

func (*ListReferenceImagesRequest) ProtoReflect

func (*ListReferenceImagesRequest) Reset

func (x *ListReferenceImagesRequest) Reset()

func (*ListReferenceImagesRequest) String

func (x *ListReferenceImagesRequest) String() string

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"`
	// contains filtered or unexported fields
}

Response message for the `ListReferenceImages` method.

func (*ListReferenceImagesResponse) Descriptor deprecated

This method has been deprecated.
func (*ListReferenceImagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListReferenceImagesResponse.ProtoReflect.Descriptor instead.

func (*ListReferenceImagesResponse) GetNextPageToken

func (x *ListReferenceImagesResponse) GetNextPageToken() string

func (*ListReferenceImagesResponse) GetPageSize

func (x *ListReferenceImagesResponse) GetPageSize() int32

func (*ListReferenceImagesResponse) GetReferenceImages

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

func (*ListReferenceImagesResponse) ProtoMessage

func (*ListReferenceImagesResponse) ProtoMessage()

func (*ListReferenceImagesResponse) ProtoReflect

func (*ListReferenceImagesResponse) Reset

func (x *ListReferenceImagesResponse) Reset()

func (*ListReferenceImagesResponse) String

func (x *ListReferenceImagesResponse) String() string

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