genproto: google.golang.org/genproto/googleapis/cloud/vision/v1 Index | Files

package vision

import "google.golang.org/genproto/googleapis/cloud/vision/v1"

Index

Package Files

geometry.pb.go image_annotator.pb.go product_search.pb.go product_search_service.pb.go text_annotation.pb.go web_detection.pb.go

Variables

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

func RegisterImageAnnotatorServer Uses

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

func RegisterProductSearchServer Uses

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

type AddProductToProductSetRequest Uses

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

Request message for the `AddProductToProductSet` method.

func (*AddProductToProductSetRequest) Descriptor Uses

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

func (*AddProductToProductSetRequest) GetName Uses

func (m *AddProductToProductSetRequest) GetName() string

func (*AddProductToProductSetRequest) GetProduct Uses

func (m *AddProductToProductSetRequest) GetProduct() string

func (*AddProductToProductSetRequest) ProtoMessage Uses

func (*AddProductToProductSetRequest) ProtoMessage()

func (*AddProductToProductSetRequest) Reset Uses

func (m *AddProductToProductSetRequest) Reset()

func (*AddProductToProductSetRequest) String Uses

func (m *AddProductToProductSetRequest) String() string

func (*AddProductToProductSetRequest) XXX_DiscardUnknown Uses

func (m *AddProductToProductSetRequest) XXX_DiscardUnknown()

func (*AddProductToProductSetRequest) XXX_Marshal Uses

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

func (*AddProductToProductSetRequest) XXX_Merge Uses

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

func (*AddProductToProductSetRequest) XXX_Size Uses

func (m *AddProductToProductSetRequest) XXX_Size() int

func (*AddProductToProductSetRequest) XXX_Unmarshal Uses

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

type AnnotateFileRequest Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*AnnotateFileRequest) Descriptor Uses

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

func (*AnnotateFileRequest) GetFeatures Uses

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

func (*AnnotateFileRequest) GetImageContext Uses

func (m *AnnotateFileRequest) GetImageContext() *ImageContext

func (*AnnotateFileRequest) GetInputConfig Uses

func (m *AnnotateFileRequest) GetInputConfig() *InputConfig

func (*AnnotateFileRequest) GetPages Uses

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

func (*AnnotateFileRequest) ProtoMessage Uses

func (*AnnotateFileRequest) ProtoMessage()

func (*AnnotateFileRequest) Reset Uses

func (m *AnnotateFileRequest) Reset()

func (*AnnotateFileRequest) String Uses

func (m *AnnotateFileRequest) String() string

func (*AnnotateFileRequest) XXX_DiscardUnknown Uses

func (m *AnnotateFileRequest) XXX_DiscardUnknown()

func (*AnnotateFileRequest) XXX_Marshal Uses

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

func (*AnnotateFileRequest) XXX_Merge Uses

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

func (*AnnotateFileRequest) XXX_Size Uses

func (m *AnnotateFileRequest) XXX_Size() int

func (*AnnotateFileRequest) XXX_Unmarshal Uses

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

type AnnotateFileResponse Uses

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

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

func (*AnnotateFileResponse) Descriptor Uses

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

func (*AnnotateFileResponse) GetInputConfig Uses

func (m *AnnotateFileResponse) GetInputConfig() *InputConfig

func (*AnnotateFileResponse) GetResponses Uses

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

func (*AnnotateFileResponse) GetTotalPages Uses

func (m *AnnotateFileResponse) GetTotalPages() int32

func (*AnnotateFileResponse) ProtoMessage Uses

func (*AnnotateFileResponse) ProtoMessage()

func (*AnnotateFileResponse) Reset Uses

func (m *AnnotateFileResponse) Reset()

func (*AnnotateFileResponse) String Uses

func (m *AnnotateFileResponse) String() string

func (*AnnotateFileResponse) XXX_DiscardUnknown Uses

func (m *AnnotateFileResponse) XXX_DiscardUnknown()

func (*AnnotateFileResponse) XXX_Marshal Uses

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

func (*AnnotateFileResponse) XXX_Merge Uses

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

func (*AnnotateFileResponse) XXX_Size Uses

func (m *AnnotateFileResponse) XXX_Size() int

func (*AnnotateFileResponse) XXX_Unmarshal Uses

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

type AnnotateImageRequest Uses

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

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

func (*AnnotateImageRequest) Descriptor Uses

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

func (*AnnotateImageRequest) GetFeatures Uses

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

func (*AnnotateImageRequest) GetImage Uses

func (m *AnnotateImageRequest) GetImage() *Image

func (*AnnotateImageRequest) GetImageContext Uses

func (m *AnnotateImageRequest) GetImageContext() *ImageContext

func (*AnnotateImageRequest) ProtoMessage Uses

func (*AnnotateImageRequest) ProtoMessage()

func (*AnnotateImageRequest) Reset Uses

func (m *AnnotateImageRequest) Reset()

func (*AnnotateImageRequest) String Uses

func (m *AnnotateImageRequest) String() string

func (*AnnotateImageRequest) XXX_DiscardUnknown Uses

func (m *AnnotateImageRequest) XXX_DiscardUnknown()

func (*AnnotateImageRequest) XXX_Marshal Uses

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

func (*AnnotateImageRequest) XXX_Merge Uses

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

func (*AnnotateImageRequest) XXX_Size Uses

func (m *AnnotateImageRequest) XXX_Size() int

func (*AnnotateImageRequest) XXX_Unmarshal Uses

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

type AnnotateImageResponse Uses

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 `protobuf:"bytes,22,rep,name=localized_object_annotations,json=localizedObjectAnnotations,proto3" json:"localized_object_annotations,omitempty"`
    // 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 `protobuf:"bytes,8,opt,name=image_properties_annotation,json=imagePropertiesAnnotation,proto3" json:"image_properties_annotation,omitempty"`
    // If present, crop hints have completed successfully.
    CropHintsAnnotation *CropHintsAnnotation `protobuf:"bytes,11,opt,name=crop_hints_annotation,json=cropHintsAnnotation,proto3" json:"crop_hints_annotation,omitempty"`
    // If present, web detection has completed successfully.
    WebDetection *WebDetection `protobuf:"bytes,13,opt,name=web_detection,json=webDetection,proto3" json:"web_detection,omitempty"`
    // If present, product search has completed successfully.
    ProductSearchResults *ProductSearchResults `protobuf:"bytes,14,opt,name=product_search_results,json=productSearchResults,proto3" json:"product_search_results,omitempty"`
    // If set, represents the error message for the operation.
    // Note that filled-in image annotations are guaranteed to be
    // correct, even when `error` is set.
    Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"`
    // If present, contextual information is needed to understand where this image
    // comes from.
    Context              *ImageAnnotationContext `protobuf:"bytes,21,opt,name=context,proto3" json:"context,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

Response to an image annotation request.

func (*AnnotateImageResponse) Descriptor Uses

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

func (*AnnotateImageResponse) GetContext Uses

func (m *AnnotateImageResponse) GetContext() *ImageAnnotationContext

func (*AnnotateImageResponse) GetCropHintsAnnotation Uses

func (m *AnnotateImageResponse) GetCropHintsAnnotation() *CropHintsAnnotation

func (*AnnotateImageResponse) GetError Uses

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

func (*AnnotateImageResponse) GetFaceAnnotations Uses

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

func (*AnnotateImageResponse) GetFullTextAnnotation Uses

func (m *AnnotateImageResponse) GetFullTextAnnotation() *TextAnnotation

func (*AnnotateImageResponse) GetImagePropertiesAnnotation Uses

func (m *AnnotateImageResponse) GetImagePropertiesAnnotation() *ImageProperties

func (*AnnotateImageResponse) GetLabelAnnotations Uses

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

func (*AnnotateImageResponse) GetLandmarkAnnotations Uses

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

func (*AnnotateImageResponse) GetLocalizedObjectAnnotations Uses

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

func (*AnnotateImageResponse) GetLogoAnnotations Uses

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

func (*AnnotateImageResponse) GetProductSearchResults Uses

func (m *AnnotateImageResponse) GetProductSearchResults() *ProductSearchResults

func (*AnnotateImageResponse) GetSafeSearchAnnotation Uses

func (m *AnnotateImageResponse) GetSafeSearchAnnotation() *SafeSearchAnnotation

func (*AnnotateImageResponse) GetTextAnnotations Uses

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

func (*AnnotateImageResponse) GetWebDetection Uses

func (m *AnnotateImageResponse) GetWebDetection() *WebDetection

func (*AnnotateImageResponse) ProtoMessage Uses

func (*AnnotateImageResponse) ProtoMessage()

func (*AnnotateImageResponse) Reset Uses

func (m *AnnotateImageResponse) Reset()

func (*AnnotateImageResponse) String Uses

func (m *AnnotateImageResponse) String() string

func (*AnnotateImageResponse) XXX_DiscardUnknown Uses

func (m *AnnotateImageResponse) XXX_DiscardUnknown()

func (*AnnotateImageResponse) XXX_Marshal Uses

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

func (*AnnotateImageResponse) XXX_Merge Uses

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

func (*AnnotateImageResponse) XXX_Size Uses

func (m *AnnotateImageResponse) XXX_Size() int

func (*AnnotateImageResponse) XXX_Unmarshal Uses

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

type AsyncAnnotateFileRequest Uses

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

An offline file annotation request.

func (*AsyncAnnotateFileRequest) Descriptor Uses

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

func (*AsyncAnnotateFileRequest) GetFeatures Uses

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

func (*AsyncAnnotateFileRequest) GetImageContext Uses

func (m *AsyncAnnotateFileRequest) GetImageContext() *ImageContext

func (*AsyncAnnotateFileRequest) GetInputConfig Uses

func (m *AsyncAnnotateFileRequest) GetInputConfig() *InputConfig

func (*AsyncAnnotateFileRequest) GetOutputConfig Uses

func (m *AsyncAnnotateFileRequest) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileRequest) ProtoMessage Uses

func (*AsyncAnnotateFileRequest) ProtoMessage()

func (*AsyncAnnotateFileRequest) Reset Uses

func (m *AsyncAnnotateFileRequest) Reset()

func (*AsyncAnnotateFileRequest) String Uses

func (m *AsyncAnnotateFileRequest) String() string

func (*AsyncAnnotateFileRequest) XXX_DiscardUnknown Uses

func (m *AsyncAnnotateFileRequest) XXX_DiscardUnknown()

func (*AsyncAnnotateFileRequest) XXX_Marshal Uses

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

func (*AsyncAnnotateFileRequest) XXX_Merge Uses

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

func (*AsyncAnnotateFileRequest) XXX_Size Uses

func (m *AsyncAnnotateFileRequest) XXX_Size() int

func (*AsyncAnnotateFileRequest) XXX_Unmarshal Uses

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

type AsyncAnnotateFileResponse Uses

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

The response for a single offline file annotation request.

func (*AsyncAnnotateFileResponse) Descriptor Uses

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

func (*AsyncAnnotateFileResponse) GetOutputConfig Uses

func (m *AsyncAnnotateFileResponse) GetOutputConfig() *OutputConfig

func (*AsyncAnnotateFileResponse) ProtoMessage Uses

func (*AsyncAnnotateFileResponse) ProtoMessage()

func (*AsyncAnnotateFileResponse) Reset Uses

func (m *AsyncAnnotateFileResponse) Reset()

func (*AsyncAnnotateFileResponse) String Uses

func (m *AsyncAnnotateFileResponse) String() string

func (*AsyncAnnotateFileResponse) XXX_DiscardUnknown Uses

func (m *AsyncAnnotateFileResponse) XXX_DiscardUnknown()

func (*AsyncAnnotateFileResponse) XXX_Marshal Uses

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

func (*AsyncAnnotateFileResponse) XXX_Merge Uses

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

func (*AsyncAnnotateFileResponse) XXX_Size Uses

func (m *AsyncAnnotateFileResponse) XXX_Size() int

func (*AsyncAnnotateFileResponse) XXX_Unmarshal Uses

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

type AsyncBatchAnnotateFilesRequest Uses

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

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

func (*AsyncBatchAnnotateFilesRequest) Descriptor Uses

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

func (*AsyncBatchAnnotateFilesRequest) GetRequests Uses

func (m *AsyncBatchAnnotateFilesRequest) GetRequests() []*AsyncAnnotateFileRequest

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage Uses

func (*AsyncBatchAnnotateFilesRequest) ProtoMessage()

func (*AsyncBatchAnnotateFilesRequest) Reset Uses

func (m *AsyncBatchAnnotateFilesRequest) Reset()

func (*AsyncBatchAnnotateFilesRequest) String Uses

func (m *AsyncBatchAnnotateFilesRequest) String() string

func (*AsyncBatchAnnotateFilesRequest) XXX_DiscardUnknown Uses

func (m *AsyncBatchAnnotateFilesRequest) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateFilesRequest) XXX_Marshal Uses

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

func (*AsyncBatchAnnotateFilesRequest) XXX_Merge Uses

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

func (*AsyncBatchAnnotateFilesRequest) XXX_Size Uses

func (m *AsyncBatchAnnotateFilesRequest) XXX_Size() int

func (*AsyncBatchAnnotateFilesRequest) XXX_Unmarshal Uses

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

type AsyncBatchAnnotateFilesResponse Uses

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

Response to an async batch file annotation request.

func (*AsyncBatchAnnotateFilesResponse) Descriptor Uses

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

func (*AsyncBatchAnnotateFilesResponse) GetResponses Uses

func (m *AsyncBatchAnnotateFilesResponse) GetResponses() []*AsyncAnnotateFileResponse

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage Uses

func (*AsyncBatchAnnotateFilesResponse) ProtoMessage()

func (*AsyncBatchAnnotateFilesResponse) Reset Uses

func (m *AsyncBatchAnnotateFilesResponse) Reset()

func (*AsyncBatchAnnotateFilesResponse) String Uses

func (m *AsyncBatchAnnotateFilesResponse) String() string

func (*AsyncBatchAnnotateFilesResponse) XXX_DiscardUnknown Uses

func (m *AsyncBatchAnnotateFilesResponse) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateFilesResponse) XXX_Marshal Uses

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

func (*AsyncBatchAnnotateFilesResponse) XXX_Merge Uses

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

func (*AsyncBatchAnnotateFilesResponse) XXX_Size Uses

func (m *AsyncBatchAnnotateFilesResponse) XXX_Size() int

func (*AsyncBatchAnnotateFilesResponse) XXX_Unmarshal Uses

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

type AsyncBatchAnnotateImagesRequest Uses

type AsyncBatchAnnotateImagesRequest struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

Request for async image annotation for a list of images.

func (*AsyncBatchAnnotateImagesRequest) Descriptor Uses

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

func (*AsyncBatchAnnotateImagesRequest) GetOutputConfig Uses

func (m *AsyncBatchAnnotateImagesRequest) GetOutputConfig() *OutputConfig

func (*AsyncBatchAnnotateImagesRequest) GetRequests Uses

func (m *AsyncBatchAnnotateImagesRequest) GetRequests() []*AnnotateImageRequest

func (*AsyncBatchAnnotateImagesRequest) ProtoMessage Uses

func (*AsyncBatchAnnotateImagesRequest) ProtoMessage()

func (*AsyncBatchAnnotateImagesRequest) Reset Uses

func (m *AsyncBatchAnnotateImagesRequest) Reset()

func (*AsyncBatchAnnotateImagesRequest) String Uses

func (m *AsyncBatchAnnotateImagesRequest) String() string

func (*AsyncBatchAnnotateImagesRequest) XXX_DiscardUnknown Uses

func (m *AsyncBatchAnnotateImagesRequest) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateImagesRequest) XXX_Marshal Uses

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

func (*AsyncBatchAnnotateImagesRequest) XXX_Merge Uses

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

func (*AsyncBatchAnnotateImagesRequest) XXX_Size Uses

func (m *AsyncBatchAnnotateImagesRequest) XXX_Size() int

func (*AsyncBatchAnnotateImagesRequest) XXX_Unmarshal Uses

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

type AsyncBatchAnnotateImagesResponse Uses

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"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

Response to an async batch image annotation request.

func (*AsyncBatchAnnotateImagesResponse) Descriptor Uses

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

func (*AsyncBatchAnnotateImagesResponse) GetOutputConfig Uses

func (m *AsyncBatchAnnotateImagesResponse) GetOutputConfig() *OutputConfig

func (*AsyncBatchAnnotateImagesResponse) ProtoMessage Uses

func (*AsyncBatchAnnotateImagesResponse) ProtoMessage()

func (*AsyncBatchAnnotateImagesResponse) Reset Uses

func (m *AsyncBatchAnnotateImagesResponse) Reset()

func (*AsyncBatchAnnotateImagesResponse) String Uses

func (m *AsyncBatchAnnotateImagesResponse) String() string

func (*AsyncBatchAnnotateImagesResponse) XXX_DiscardUnknown Uses

func (m *AsyncBatchAnnotateImagesResponse) XXX_DiscardUnknown()

func (*AsyncBatchAnnotateImagesResponse) XXX_Marshal Uses

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

func (*AsyncBatchAnnotateImagesResponse) XXX_Merge Uses

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

func (*AsyncBatchAnnotateImagesResponse) XXX_Size Uses

func (m *AsyncBatchAnnotateImagesResponse) XXX_Size() int

func (*AsyncBatchAnnotateImagesResponse) XXX_Unmarshal Uses

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

type BatchAnnotateFilesRequest Uses

type BatchAnnotateFilesRequest struct {
    // 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"`
    XXX_NoUnkeyedLiteral struct{}               `json:"-"`
    XXX_unrecognized     []byte                 `json:"-"`
    XXX_sizecache        int32                  `json:"-"`
}

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

func (*BatchAnnotateFilesRequest) Descriptor Uses

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

func (*BatchAnnotateFilesRequest) GetRequests Uses

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

func (*BatchAnnotateFilesRequest) ProtoMessage Uses

func (*BatchAnnotateFilesRequest) ProtoMessage()

func (*BatchAnnotateFilesRequest) Reset Uses

func (m *BatchAnnotateFilesRequest) Reset()

func (*BatchAnnotateFilesRequest) String Uses

func (m *BatchAnnotateFilesRequest) String() string

func (*BatchAnnotateFilesRequest) XXX_DiscardUnknown Uses

func (m *BatchAnnotateFilesRequest) XXX_DiscardUnknown()

func (*BatchAnnotateFilesRequest) XXX_Marshal Uses

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

func (*BatchAnnotateFilesRequest) XXX_Merge Uses

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

func (*BatchAnnotateFilesRequest) XXX_Size Uses

func (m *BatchAnnotateFilesRequest) XXX_Size() int

func (*BatchAnnotateFilesRequest) XXX_Unmarshal Uses

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

type BatchAnnotateFilesResponse Uses

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"`
    XXX_NoUnkeyedLiteral struct{}                `json:"-"`
    XXX_unrecognized     []byte                  `json:"-"`
    XXX_sizecache        int32                   `json:"-"`
}

A list of file annotation responses.

func (*BatchAnnotateFilesResponse) Descriptor Uses

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

func (*BatchAnnotateFilesResponse) GetResponses Uses

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

func (*BatchAnnotateFilesResponse) ProtoMessage Uses

func (*BatchAnnotateFilesResponse) ProtoMessage()

func (*BatchAnnotateFilesResponse) Reset Uses

func (m *BatchAnnotateFilesResponse) Reset()

func (*BatchAnnotateFilesResponse) String Uses

func (m *BatchAnnotateFilesResponse) String() string

func (*BatchAnnotateFilesResponse) XXX_DiscardUnknown Uses

func (m *BatchAnnotateFilesResponse) XXX_DiscardUnknown()

func (*BatchAnnotateFilesResponse) XXX_Marshal Uses

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

func (*BatchAnnotateFilesResponse) XXX_Merge Uses

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

func (*BatchAnnotateFilesResponse) XXX_Size Uses

func (m *BatchAnnotateFilesResponse) XXX_Size() int

func (*BatchAnnotateFilesResponse) XXX_Unmarshal Uses

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

type BatchAnnotateImagesRequest Uses

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

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

func (*BatchAnnotateImagesRequest) Descriptor Uses

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

func (*BatchAnnotateImagesRequest) GetRequests Uses

func (m *BatchAnnotateImagesRequest) GetRequests() []*AnnotateImageRequest

func (*BatchAnnotateImagesRequest) ProtoMessage Uses

func (*BatchAnnotateImagesRequest) ProtoMessage()

func (*BatchAnnotateImagesRequest) Reset Uses

func (m *BatchAnnotateImagesRequest) Reset()

func (*BatchAnnotateImagesRequest) String Uses

func (m *BatchAnnotateImagesRequest) String() string

func (*BatchAnnotateImagesRequest) XXX_DiscardUnknown Uses

func (m *BatchAnnotateImagesRequest) XXX_DiscardUnknown()

func (*BatchAnnotateImagesRequest) XXX_Marshal Uses

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

func (*BatchAnnotateImagesRequest) XXX_Merge Uses

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

func (*BatchAnnotateImagesRequest) XXX_Size Uses

func (m *BatchAnnotateImagesRequest) XXX_Size() int

func (*BatchAnnotateImagesRequest) XXX_Unmarshal Uses

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

type BatchAnnotateImagesResponse Uses

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

Response to a batch image annotation request.

func (*BatchAnnotateImagesResponse) Descriptor Uses

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

func (*BatchAnnotateImagesResponse) GetResponses Uses

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

func (*BatchAnnotateImagesResponse) ProtoMessage Uses

func (*BatchAnnotateImagesResponse) ProtoMessage()

func (*BatchAnnotateImagesResponse) Reset Uses

func (m *BatchAnnotateImagesResponse) Reset()

func (*BatchAnnotateImagesResponse) String Uses

func (m *BatchAnnotateImagesResponse) String() string

func (*BatchAnnotateImagesResponse) XXX_DiscardUnknown Uses

func (m *BatchAnnotateImagesResponse) XXX_DiscardUnknown()

func (*BatchAnnotateImagesResponse) XXX_Marshal Uses

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

func (*BatchAnnotateImagesResponse) XXX_Merge Uses

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

func (*BatchAnnotateImagesResponse) XXX_Size Uses

func (m *BatchAnnotateImagesResponse) XXX_Size() int

func (*BatchAnnotateImagesResponse) XXX_Unmarshal Uses

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

type BatchOperationMetadata Uses

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 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
    // The time when the batch request is finished and
    // [google.longrunning.Operation.done][google.longrunning.Operation.done] is
    // set to true.
    EndTime              *timestamp.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

Metadata for the batch operations such as the current state.

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

func (*BatchOperationMetadata) Descriptor Uses

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

func (*BatchOperationMetadata) GetEndTime Uses

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

func (*BatchOperationMetadata) GetState Uses

func (m *BatchOperationMetadata) GetState() BatchOperationMetadata_State

func (*BatchOperationMetadata) GetSubmitTime Uses

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

func (*BatchOperationMetadata) ProtoMessage Uses

func (*BatchOperationMetadata) ProtoMessage()

func (*BatchOperationMetadata) Reset Uses

func (m *BatchOperationMetadata) Reset()

func (*BatchOperationMetadata) String Uses

func (m *BatchOperationMetadata) String() string

func (*BatchOperationMetadata) XXX_DiscardUnknown Uses

func (m *BatchOperationMetadata) XXX_DiscardUnknown()

func (*BatchOperationMetadata) XXX_Marshal Uses

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

func (*BatchOperationMetadata) XXX_Merge Uses

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

func (*BatchOperationMetadata) XXX_Size Uses

func (m *BatchOperationMetadata) XXX_Size() int

func (*BatchOperationMetadata) XXX_Unmarshal Uses

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

type BatchOperationMetadata_State Uses

type BatchOperationMetadata_State int32

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

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

func (BatchOperationMetadata_State) EnumDescriptor Uses

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

func (BatchOperationMetadata_State) String Uses

func (x BatchOperationMetadata_State) String() string

type Block Uses

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 `protobuf:"varint,4,opt,name=block_type,json=blockType,proto3,enum=google.cloud.vision.v1.Block_BlockType" json:"block_type,omitempty"`
    // Confidence of the OCR results on the block. Range [0, 1].
    Confidence           float32  `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Logical element on the page.

func (*Block) Descriptor Uses

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

func (*Block) GetBlockType Uses

func (m *Block) GetBlockType() Block_BlockType

func (*Block) GetBoundingBox Uses

func (m *Block) GetBoundingBox() *BoundingPoly

func (*Block) GetConfidence Uses

func (m *Block) GetConfidence() float32

func (*Block) GetParagraphs Uses

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

func (*Block) GetProperty Uses

func (m *Block) GetProperty() *TextAnnotation_TextProperty

func (*Block) ProtoMessage Uses

func (*Block) ProtoMessage()

func (*Block) Reset Uses

func (m *Block) Reset()

func (*Block) String Uses

func (m *Block) String() string

func (*Block) XXX_DiscardUnknown Uses

func (m *Block) XXX_DiscardUnknown()

func (*Block) XXX_Marshal Uses

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

func (*Block) XXX_Merge Uses

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

func (*Block) XXX_Size Uses

func (m *Block) XXX_Size() int

func (*Block) XXX_Unmarshal Uses

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

type Block_BlockType Uses

type Block_BlockType int32

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

const (
    // Unknown block type.
    Block_UNKNOWN Block_BlockType = 0
    // Regular text block.
    Block_TEXT Block_BlockType = 1
    // Table block.
    Block_TABLE Block_BlockType = 2
    // Image block.
    Block_PICTURE Block_BlockType = 3
    // Horizontal/vertical line box.
    Block_RULER Block_BlockType = 4
    // Barcode block.
    Block_BARCODE Block_BlockType = 5
)

func (Block_BlockType) EnumDescriptor Uses

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

func (Block_BlockType) String Uses

func (x Block_BlockType) String() string

type BoundingPoly Uses

type BoundingPoly struct {
    // The bounding polygon vertices.
    Vertices []*Vertex `protobuf:"bytes,1,rep,name=vertices,proto3" json:"vertices,omitempty"`
    // The bounding polygon normalized vertices.
    NormalizedVertices   []*NormalizedVertex `protobuf:"bytes,2,rep,name=normalized_vertices,json=normalizedVertices,proto3" json:"normalized_vertices,omitempty"`
    XXX_NoUnkeyedLiteral struct{}            `json:"-"`
    XXX_unrecognized     []byte              `json:"-"`
    XXX_sizecache        int32               `json:"-"`
}

A bounding polygon for the detected image annotation.

func (*BoundingPoly) Descriptor Uses

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

func (*BoundingPoly) GetNormalizedVertices Uses

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

func (*BoundingPoly) GetVertices Uses

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

func (*BoundingPoly) ProtoMessage Uses

func (*BoundingPoly) ProtoMessage()

func (*BoundingPoly) Reset Uses

func (m *BoundingPoly) Reset()

func (*BoundingPoly) String Uses

func (m *BoundingPoly) String() string

func (*BoundingPoly) XXX_DiscardUnknown Uses

func (m *BoundingPoly) XXX_DiscardUnknown()

func (*BoundingPoly) XXX_Marshal Uses

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

func (*BoundingPoly) XXX_Merge Uses

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

func (*BoundingPoly) XXX_Size Uses

func (m *BoundingPoly) XXX_Size() int

func (*BoundingPoly) XXX_Unmarshal Uses

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

type ColorInfo Uses

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

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

func (*ColorInfo) Descriptor Uses

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

func (*ColorInfo) GetColor Uses

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

func (*ColorInfo) GetPixelFraction Uses

func (m *ColorInfo) GetPixelFraction() float32

func (*ColorInfo) GetScore Uses

func (m *ColorInfo) GetScore() float32

func (*ColorInfo) ProtoMessage Uses

func (*ColorInfo) ProtoMessage()

func (*ColorInfo) Reset Uses

func (m *ColorInfo) Reset()

func (*ColorInfo) String Uses

func (m *ColorInfo) String() string

func (*ColorInfo) XXX_DiscardUnknown Uses

func (m *ColorInfo) XXX_DiscardUnknown()

func (*ColorInfo) XXX_Marshal Uses

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

func (*ColorInfo) XXX_Merge Uses

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

func (*ColorInfo) XXX_Size Uses

func (m *ColorInfo) XXX_Size() int

func (*ColorInfo) XXX_Unmarshal Uses

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

type CreateProductRequest Uses

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

Request message for the `CreateProduct` method.

func (*CreateProductRequest) Descriptor Uses

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

func (*CreateProductRequest) GetParent Uses

func (m *CreateProductRequest) GetParent() string

func (*CreateProductRequest) GetProduct Uses

func (m *CreateProductRequest) GetProduct() *Product

func (*CreateProductRequest) GetProductId Uses

func (m *CreateProductRequest) GetProductId() string

func (*CreateProductRequest) ProtoMessage Uses

func (*CreateProductRequest) ProtoMessage()

func (*CreateProductRequest) Reset Uses

func (m *CreateProductRequest) Reset()

func (*CreateProductRequest) String Uses

func (m *CreateProductRequest) String() string

func (*CreateProductRequest) XXX_DiscardUnknown Uses

func (m *CreateProductRequest) XXX_DiscardUnknown()

func (*CreateProductRequest) XXX_Marshal Uses

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

func (*CreateProductRequest) XXX_Merge Uses

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

func (*CreateProductRequest) XXX_Size Uses

func (m *CreateProductRequest) XXX_Size() int

func (*CreateProductRequest) XXX_Unmarshal Uses

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

type CreateProductSetRequest Uses

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

Request message for the `CreateProductSet` method.

func (*CreateProductSetRequest) Descriptor Uses

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

func (*CreateProductSetRequest) GetParent Uses

func (m *CreateProductSetRequest) GetParent() string

func (*CreateProductSetRequest) GetProductSet Uses

func (m *CreateProductSetRequest) GetProductSet() *ProductSet

func (*CreateProductSetRequest) GetProductSetId Uses

func (m *CreateProductSetRequest) GetProductSetId() string

func (*CreateProductSetRequest) ProtoMessage Uses

func (*CreateProductSetRequest) ProtoMessage()

func (*CreateProductSetRequest) Reset Uses

func (m *CreateProductSetRequest) Reset()

func (*CreateProductSetRequest) String Uses

func (m *CreateProductSetRequest) String() string

func (*CreateProductSetRequest) XXX_DiscardUnknown Uses

func (m *CreateProductSetRequest) XXX_DiscardUnknown()

func (*CreateProductSetRequest) XXX_Marshal Uses

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

func (*CreateProductSetRequest) XXX_Merge Uses

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

func (*CreateProductSetRequest) XXX_Size Uses

func (m *CreateProductSetRequest) XXX_Size() int

func (*CreateProductSetRequest) XXX_Unmarshal Uses

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

type CreateReferenceImageRequest Uses

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

Request message for the `CreateReferenceImage` method.

func (*CreateReferenceImageRequest) Descriptor Uses

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

func (*CreateReferenceImageRequest) GetParent Uses

func (m *CreateReferenceImageRequest) GetParent() string

func (*CreateReferenceImageRequest) GetReferenceImage Uses

func (m *CreateReferenceImageRequest) GetReferenceImage() *ReferenceImage

func (*CreateReferenceImageRequest) GetReferenceImageId Uses

func (m *CreateReferenceImageRequest) GetReferenceImageId() string

func (*CreateReferenceImageRequest) ProtoMessage Uses

func (*CreateReferenceImageRequest) ProtoMessage()

func (*CreateReferenceImageRequest) Reset Uses

func (m *CreateReferenceImageRequest) Reset()

func (*CreateReferenceImageRequest) String Uses

func (m *CreateReferenceImageRequest) String() string

func (*CreateReferenceImageRequest) XXX_DiscardUnknown Uses

func (m *CreateReferenceImageRequest) XXX_DiscardUnknown()

func (*CreateReferenceImageRequest) XXX_Marshal Uses

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

func (*CreateReferenceImageRequest) XXX_Merge Uses

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

func (*CreateReferenceImageRequest) XXX_Size Uses

func (m *CreateReferenceImageRequest) XXX_Size() int

func (*CreateReferenceImageRequest) XXX_Unmarshal Uses

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

type CropHint Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*CropHint) Descriptor Uses

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

func (*CropHint) GetBoundingPoly Uses

func (m *CropHint) GetBoundingPoly() *BoundingPoly

func (*CropHint) GetConfidence Uses

func (m *CropHint) GetConfidence() float32

func (*CropHint) GetImportanceFraction Uses

func (m *CropHint) GetImportanceFraction() float32

func (*CropHint) ProtoMessage Uses

func (*CropHint) ProtoMessage()

func (*CropHint) Reset Uses

func (m *CropHint) Reset()

func (*CropHint) String Uses

func (m *CropHint) String() string

func (*CropHint) XXX_DiscardUnknown Uses

func (m *CropHint) XXX_DiscardUnknown()

func (*CropHint) XXX_Marshal Uses

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

func (*CropHint) XXX_Merge Uses

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

func (*CropHint) XXX_Size Uses

func (m *CropHint) XXX_Size() int

func (*CropHint) XXX_Unmarshal Uses

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

type CropHintsAnnotation Uses

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

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

func (*CropHintsAnnotation) Descriptor Uses

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

func (*CropHintsAnnotation) GetCropHints Uses

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

func (*CropHintsAnnotation) ProtoMessage Uses

func (*CropHintsAnnotation) ProtoMessage()

func (*CropHintsAnnotation) Reset Uses

func (m *CropHintsAnnotation) Reset()

func (*CropHintsAnnotation) String Uses

func (m *CropHintsAnnotation) String() string

func (*CropHintsAnnotation) XXX_DiscardUnknown Uses

func (m *CropHintsAnnotation) XXX_DiscardUnknown()

func (*CropHintsAnnotation) XXX_Marshal Uses

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

func (*CropHintsAnnotation) XXX_Merge Uses

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

func (*CropHintsAnnotation) XXX_Size Uses

func (m *CropHintsAnnotation) XXX_Size() int

func (*CropHintsAnnotation) XXX_Unmarshal Uses

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

type CropHintsParams Uses

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

Parameters for crop hints annotation request.

func (*CropHintsParams) Descriptor Uses

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

func (*CropHintsParams) GetAspectRatios Uses

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

func (*CropHintsParams) ProtoMessage Uses

func (*CropHintsParams) ProtoMessage()

func (*CropHintsParams) Reset Uses

func (m *CropHintsParams) Reset()

func (*CropHintsParams) String Uses

func (m *CropHintsParams) String() string

func (*CropHintsParams) XXX_DiscardUnknown Uses

func (m *CropHintsParams) XXX_DiscardUnknown()

func (*CropHintsParams) XXX_Marshal Uses

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

func (*CropHintsParams) XXX_Merge Uses

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

func (*CropHintsParams) XXX_Size Uses

func (m *CropHintsParams) XXX_Size() int

func (*CropHintsParams) XXX_Unmarshal Uses

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

type DeleteProductRequest Uses

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

Request message for the `DeleteProduct` method.

func (*DeleteProductRequest) Descriptor Uses

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

func (*DeleteProductRequest) GetName Uses

func (m *DeleteProductRequest) GetName() string

func (*DeleteProductRequest) ProtoMessage Uses

func (*DeleteProductRequest) ProtoMessage()

func (*DeleteProductRequest) Reset Uses

func (m *DeleteProductRequest) Reset()

func (*DeleteProductRequest) String Uses

func (m *DeleteProductRequest) String() string

func (*DeleteProductRequest) XXX_DiscardUnknown Uses

func (m *DeleteProductRequest) XXX_DiscardUnknown()

func (*DeleteProductRequest) XXX_Marshal Uses

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

func (*DeleteProductRequest) XXX_Merge Uses

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

func (*DeleteProductRequest) XXX_Size Uses

func (m *DeleteProductRequest) XXX_Size() int

func (*DeleteProductRequest) XXX_Unmarshal Uses

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

type DeleteProductSetRequest Uses

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

Request message for the `DeleteProductSet` method.

func (*DeleteProductSetRequest) Descriptor Uses

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

func (*DeleteProductSetRequest) GetName Uses

func (m *DeleteProductSetRequest) GetName() string

func (*DeleteProductSetRequest) ProtoMessage Uses

func (*DeleteProductSetRequest) ProtoMessage()

func (*DeleteProductSetRequest) Reset Uses

func (m *DeleteProductSetRequest) Reset()

func (*DeleteProductSetRequest) String Uses

func (m *DeleteProductSetRequest) String() string

func (*DeleteProductSetRequest) XXX_DiscardUnknown Uses

func (m *DeleteProductSetRequest) XXX_DiscardUnknown()

func (*DeleteProductSetRequest) XXX_Marshal Uses

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

func (*DeleteProductSetRequest) XXX_Merge Uses

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

func (*DeleteProductSetRequest) XXX_Size Uses

func (m *DeleteProductSetRequest) XXX_Size() int

func (*DeleteProductSetRequest) XXX_Unmarshal Uses

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

type DeleteReferenceImageRequest Uses

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

Request message for the `DeleteReferenceImage` method.

func (*DeleteReferenceImageRequest) Descriptor Uses

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

func (*DeleteReferenceImageRequest) GetName Uses

func (m *DeleteReferenceImageRequest) GetName() string

func (*DeleteReferenceImageRequest) ProtoMessage Uses

func (*DeleteReferenceImageRequest) ProtoMessage()

func (*DeleteReferenceImageRequest) Reset Uses

func (m *DeleteReferenceImageRequest) Reset()

func (*DeleteReferenceImageRequest) String Uses

func (m *DeleteReferenceImageRequest) String() string

func (*DeleteReferenceImageRequest) XXX_DiscardUnknown Uses

func (m *DeleteReferenceImageRequest) XXX_DiscardUnknown()

func (*DeleteReferenceImageRequest) XXX_Marshal Uses

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

func (*DeleteReferenceImageRequest) XXX_Merge Uses

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

func (*DeleteReferenceImageRequest) XXX_Size Uses

func (m *DeleteReferenceImageRequest) XXX_Size() int

func (*DeleteReferenceImageRequest) XXX_Unmarshal Uses

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

type DominantColorsAnnotation Uses

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

Set of dominant colors and their corresponding scores.

func (*DominantColorsAnnotation) Descriptor Uses

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

func (*DominantColorsAnnotation) GetColors Uses

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

func (*DominantColorsAnnotation) ProtoMessage Uses

func (*DominantColorsAnnotation) ProtoMessage()

func (*DominantColorsAnnotation) Reset Uses

func (m *DominantColorsAnnotation) Reset()

func (*DominantColorsAnnotation) String Uses

func (m *DominantColorsAnnotation) String() string

func (*DominantColorsAnnotation) XXX_DiscardUnknown Uses

func (m *DominantColorsAnnotation) XXX_DiscardUnknown()

func (*DominantColorsAnnotation) XXX_Marshal Uses

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

func (*DominantColorsAnnotation) XXX_Merge Uses

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

func (*DominantColorsAnnotation) XXX_Size Uses

func (m *DominantColorsAnnotation) XXX_Size() int

func (*DominantColorsAnnotation) XXX_Unmarshal Uses

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

type EntityAnnotation Uses

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

Set of detected entity features.

func (*EntityAnnotation) Descriptor Uses

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

func (*EntityAnnotation) GetBoundingPoly Uses

func (m *EntityAnnotation) GetBoundingPoly() *BoundingPoly

func (*EntityAnnotation) GetConfidence Uses

func (m *EntityAnnotation) GetConfidence() float32

Deprecated: Do not use.

func (*EntityAnnotation) GetDescription Uses

func (m *EntityAnnotation) GetDescription() string

func (*EntityAnnotation) GetLocale Uses

func (m *EntityAnnotation) GetLocale() string

func (*EntityAnnotation) GetLocations Uses

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

func (*EntityAnnotation) GetMid Uses

func (m *EntityAnnotation) GetMid() string

func (*EntityAnnotation) GetProperties Uses

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

func (*EntityAnnotation) GetScore Uses

func (m *EntityAnnotation) GetScore() float32

func (*EntityAnnotation) GetTopicality Uses

func (m *EntityAnnotation) GetTopicality() float32

func (*EntityAnnotation) ProtoMessage Uses

func (*EntityAnnotation) ProtoMessage()

func (*EntityAnnotation) Reset Uses

func (m *EntityAnnotation) Reset()

func (*EntityAnnotation) String Uses

func (m *EntityAnnotation) String() string

func (*EntityAnnotation) XXX_DiscardUnknown Uses

func (m *EntityAnnotation) XXX_DiscardUnknown()

func (*EntityAnnotation) XXX_Marshal Uses

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

func (*EntityAnnotation) XXX_Merge Uses

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

func (*EntityAnnotation) XXX_Size Uses

func (m *EntityAnnotation) XXX_Size() int

func (*EntityAnnotation) XXX_Unmarshal Uses

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

type FaceAnnotation Uses

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 `protobuf:"fixed32,8,opt,name=landmarking_confidence,json=landmarkingConfidence,proto3" json:"landmarking_confidence,omitempty"`
    // Joy likelihood.
    JoyLikelihood Likelihood `protobuf:"varint,9,opt,name=joy_likelihood,json=joyLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"joy_likelihood,omitempty"`
    // Sorrow likelihood.
    SorrowLikelihood Likelihood `protobuf:"varint,10,opt,name=sorrow_likelihood,json=sorrowLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"sorrow_likelihood,omitempty"`
    // Anger likelihood.
    AngerLikelihood Likelihood `protobuf:"varint,11,opt,name=anger_likelihood,json=angerLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"anger_likelihood,omitempty"`
    // Surprise likelihood.
    SurpriseLikelihood Likelihood `protobuf:"varint,12,opt,name=surprise_likelihood,json=surpriseLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"surprise_likelihood,omitempty"`
    // Under-exposed likelihood.
    UnderExposedLikelihood Likelihood `protobuf:"varint,13,opt,name=under_exposed_likelihood,json=underExposedLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"under_exposed_likelihood,omitempty"`
    // Blurred likelihood.
    BlurredLikelihood Likelihood `protobuf:"varint,14,opt,name=blurred_likelihood,json=blurredLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"blurred_likelihood,omitempty"`
    // Headwear likelihood.
    HeadwearLikelihood   Likelihood `protobuf:"varint,15,opt,name=headwear_likelihood,json=headwearLikelihood,proto3,enum=google.cloud.vision.v1.Likelihood" json:"headwear_likelihood,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

A face annotation object contains the results of face detection.

func (*FaceAnnotation) Descriptor Uses

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

func (*FaceAnnotation) GetAngerLikelihood Uses

func (m *FaceAnnotation) GetAngerLikelihood() Likelihood

func (*FaceAnnotation) GetBlurredLikelihood Uses

func (m *FaceAnnotation) GetBlurredLikelihood() Likelihood

func (*FaceAnnotation) GetBoundingPoly Uses

func (m *FaceAnnotation) GetBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetDetectionConfidence Uses

func (m *FaceAnnotation) GetDetectionConfidence() float32

func (*FaceAnnotation) GetFdBoundingPoly Uses

func (m *FaceAnnotation) GetFdBoundingPoly() *BoundingPoly

func (*FaceAnnotation) GetHeadwearLikelihood Uses

func (m *FaceAnnotation) GetHeadwearLikelihood() Likelihood

func (*FaceAnnotation) GetJoyLikelihood Uses

func (m *FaceAnnotation) GetJoyLikelihood() Likelihood

func (*FaceAnnotation) GetLandmarkingConfidence Uses

func (m *FaceAnnotation) GetLandmarkingConfidence() float32

func (*FaceAnnotation) GetLandmarks Uses

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

func (*FaceAnnotation) GetPanAngle Uses

func (m *FaceAnnotation) GetPanAngle() float32

func (*FaceAnnotation) GetRollAngle Uses

func (m *FaceAnnotation) GetRollAngle() float32

func (*FaceAnnotation) GetSorrowLikelihood Uses

func (m *FaceAnnotation) GetSorrowLikelihood() Likelihood

func (*FaceAnnotation) GetSurpriseLikelihood Uses

func (m *FaceAnnotation) GetSurpriseLikelihood() Likelihood

func (*FaceAnnotation) GetTiltAngle Uses

func (m *FaceAnnotation) GetTiltAngle() float32

func (*FaceAnnotation) GetUnderExposedLikelihood Uses

func (m *FaceAnnotation) GetUnderExposedLikelihood() Likelihood

func (*FaceAnnotation) ProtoMessage Uses

func (*FaceAnnotation) ProtoMessage()

func (*FaceAnnotation) Reset Uses

func (m *FaceAnnotation) Reset()

func (*FaceAnnotation) String Uses

func (m *FaceAnnotation) String() string

func (*FaceAnnotation) XXX_DiscardUnknown Uses

func (m *FaceAnnotation) XXX_DiscardUnknown()

func (*FaceAnnotation) XXX_Marshal Uses

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

func (*FaceAnnotation) XXX_Merge Uses

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

func (*FaceAnnotation) XXX_Size Uses

func (m *FaceAnnotation) XXX_Size() int

func (*FaceAnnotation) XXX_Unmarshal Uses

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

type FaceAnnotation_Landmark Uses

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"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

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

func (*FaceAnnotation_Landmark) Descriptor Uses

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

func (*FaceAnnotation_Landmark) GetPosition Uses

func (m *FaceAnnotation_Landmark) GetPosition() *Position

func (*FaceAnnotation_Landmark) GetType Uses

func (m *FaceAnnotation_Landmark) GetType() FaceAnnotation_Landmark_Type

func (*FaceAnnotation_Landmark) ProtoMessage Uses

func (*FaceAnnotation_Landmark) ProtoMessage()

func (*FaceAnnotation_Landmark) Reset Uses

func (m *FaceAnnotation_Landmark) Reset()

func (*FaceAnnotation_Landmark) String Uses

func (m *FaceAnnotation_Landmark) String() string

func (*FaceAnnotation_Landmark) XXX_DiscardUnknown Uses

func (m *FaceAnnotation_Landmark) XXX_DiscardUnknown()

func (*FaceAnnotation_Landmark) XXX_Marshal Uses

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

func (*FaceAnnotation_Landmark) XXX_Merge Uses

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

func (*FaceAnnotation_Landmark) XXX_Size Uses

func (m *FaceAnnotation_Landmark) XXX_Size() int

func (*FaceAnnotation_Landmark) XXX_Unmarshal Uses

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

type FaceAnnotation_Landmark_Type Uses

type FaceAnnotation_Landmark_Type int32

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

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

func (FaceAnnotation_Landmark_Type) EnumDescriptor Uses

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

func (FaceAnnotation_Landmark_Type) String Uses

func (x FaceAnnotation_Landmark_Type) String() string

type Feature Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*Feature) Descriptor Uses

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

func (*Feature) GetMaxResults Uses

func (m *Feature) GetMaxResults() int32

func (*Feature) GetModel Uses

func (m *Feature) GetModel() string

func (*Feature) GetType Uses

func (m *Feature) GetType() Feature_Type

func (*Feature) ProtoMessage Uses

func (*Feature) ProtoMessage()

func (*Feature) Reset Uses

func (m *Feature) Reset()

func (*Feature) String Uses

func (m *Feature) String() string

func (*Feature) XXX_DiscardUnknown Uses

func (m *Feature) XXX_DiscardUnknown()

func (*Feature) XXX_Marshal Uses

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

func (*Feature) XXX_Merge Uses

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

func (*Feature) XXX_Size Uses

func (m *Feature) XXX_Size() int

func (*Feature) XXX_Unmarshal Uses

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

type Feature_Type Uses

type Feature_Type int32

Type of Google Cloud Vision API feature to be extracted.

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

func (Feature_Type) EnumDescriptor Uses

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

func (Feature_Type) String Uses

func (x Feature_Type) String() string

type GcsDestination Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*GcsDestination) Descriptor Uses

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

func (*GcsDestination) GetUri Uses

func (m *GcsDestination) GetUri() string

func (*GcsDestination) ProtoMessage Uses

func (*GcsDestination) ProtoMessage()

func (*GcsDestination) Reset Uses

func (m *GcsDestination) Reset()

func (*GcsDestination) String Uses

func (m *GcsDestination) String() string

func (*GcsDestination) XXX_DiscardUnknown Uses

func (m *GcsDestination) XXX_DiscardUnknown()

func (*GcsDestination) XXX_Marshal Uses

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

func (*GcsDestination) XXX_Merge Uses

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

func (*GcsDestination) XXX_Size Uses

func (m *GcsDestination) XXX_Size() int

func (*GcsDestination) XXX_Unmarshal Uses

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

type GcsSource Uses

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

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

func (*GcsSource) Descriptor Uses

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

func (*GcsSource) GetUri Uses

func (m *GcsSource) GetUri() string

func (*GcsSource) ProtoMessage Uses

func (*GcsSource) ProtoMessage()

func (*GcsSource) Reset Uses

func (m *GcsSource) Reset()

func (*GcsSource) String Uses

func (m *GcsSource) String() string

func (*GcsSource) XXX_DiscardUnknown Uses

func (m *GcsSource) XXX_DiscardUnknown()

func (*GcsSource) XXX_Marshal Uses

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

func (*GcsSource) XXX_Merge Uses

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

func (*GcsSource) XXX_Size Uses

func (m *GcsSource) XXX_Size() int

func (*GcsSource) XXX_Unmarshal Uses

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

type GetProductRequest Uses

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

Request message for the `GetProduct` method.

func (*GetProductRequest) Descriptor Uses

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

func (*GetProductRequest) GetName Uses

func (m *GetProductRequest) GetName() string

func (*GetProductRequest) ProtoMessage Uses

func (*GetProductRequest) ProtoMessage()

func (*GetProductRequest) Reset Uses

func (m *GetProductRequest) Reset()

func (*GetProductRequest) String Uses

func (m *GetProductRequest) String() string

func (*GetProductRequest) XXX_DiscardUnknown Uses

func (m *GetProductRequest) XXX_DiscardUnknown()

func (*GetProductRequest) XXX_Marshal Uses

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

func (*GetProductRequest) XXX_Merge Uses

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

func (*GetProductRequest) XXX_Size Uses

func (m *GetProductRequest) XXX_Size() int

func (*GetProductRequest) XXX_Unmarshal Uses

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

type GetProductSetRequest Uses

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

Request message for the `GetProductSet` method.

func (*GetProductSetRequest) Descriptor Uses

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

func (*GetProductSetRequest) GetName Uses

func (m *GetProductSetRequest) GetName() string

func (*GetProductSetRequest) ProtoMessage Uses

func (*GetProductSetRequest) ProtoMessage()

func (*GetProductSetRequest) Reset Uses

func (m *GetProductSetRequest) Reset()

func (*GetProductSetRequest) String Uses

func (m *GetProductSetRequest) String() string

func (*GetProductSetRequest) XXX_DiscardUnknown Uses

func (m *GetProductSetRequest) XXX_DiscardUnknown()

func (*GetProductSetRequest) XXX_Marshal Uses

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

func (*GetProductSetRequest) XXX_Merge Uses

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

func (*GetProductSetRequest) XXX_Size Uses

func (m *GetProductSetRequest) XXX_Size() int

func (*GetProductSetRequest) XXX_Unmarshal Uses

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

type GetReferenceImageRequest Uses

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

Request message for the `GetReferenceImage` method.

func (*GetReferenceImageRequest) Descriptor Uses

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

func (*GetReferenceImageRequest) GetName Uses

func (m *GetReferenceImageRequest) GetName() string

func (*GetReferenceImageRequest) ProtoMessage Uses

func (*GetReferenceImageRequest) ProtoMessage()

func (*GetReferenceImageRequest) Reset Uses

func (m *GetReferenceImageRequest) Reset()

func (*GetReferenceImageRequest) String Uses

func (m *GetReferenceImageRequest) String() string

func (*GetReferenceImageRequest) XXX_DiscardUnknown Uses

func (m *GetReferenceImageRequest) XXX_DiscardUnknown()

func (*GetReferenceImageRequest) XXX_Marshal Uses

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

func (*GetReferenceImageRequest) XXX_Merge Uses

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

func (*GetReferenceImageRequest) XXX_Size Uses

func (m *GetReferenceImageRequest) XXX_Size() int

func (*GetReferenceImageRequest) XXX_Unmarshal Uses

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

type Image Uses

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

Client image to perform Google Cloud Vision API tasks over.

func (*Image) Descriptor Uses

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

func (*Image) GetContent Uses

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

func (*Image) GetSource Uses

func (m *Image) GetSource() *ImageSource

func (*Image) ProtoMessage Uses

func (*Image) ProtoMessage()

func (*Image) Reset Uses

func (m *Image) Reset()

func (*Image) String Uses

func (m *Image) String() string

func (*Image) XXX_DiscardUnknown Uses

func (m *Image) XXX_DiscardUnknown()

func (*Image) XXX_Marshal Uses

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

func (*Image) XXX_Merge Uses

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

func (*Image) XXX_Size Uses

func (m *Image) XXX_Size() int

func (*Image) XXX_Unmarshal Uses

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

type ImageAnnotationContext Uses

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

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

func (*ImageAnnotationContext) Descriptor Uses

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

func (*ImageAnnotationContext) GetPageNumber Uses

func (m *ImageAnnotationContext) GetPageNumber() int32

func (*ImageAnnotationContext) GetUri Uses

func (m *ImageAnnotationContext) GetUri() string

func (*ImageAnnotationContext) ProtoMessage Uses

func (*ImageAnnotationContext) ProtoMessage()

func (*ImageAnnotationContext) Reset Uses

func (m *ImageAnnotationContext) Reset()

func (*ImageAnnotationContext) String Uses

func (m *ImageAnnotationContext) String() string

func (*ImageAnnotationContext) XXX_DiscardUnknown Uses

func (m *ImageAnnotationContext) XXX_DiscardUnknown()

func (*ImageAnnotationContext) XXX_Marshal Uses

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

func (*ImageAnnotationContext) XXX_Merge Uses

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

func (*ImageAnnotationContext) XXX_Size Uses

func (m *ImageAnnotationContext) XXX_Size() int

func (*ImageAnnotationContext) XXX_Unmarshal Uses

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

type ImageAnnotatorClient Uses

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.

func NewImageAnnotatorClient Uses

func NewImageAnnotatorClient(cc *grpc.ClientConn) ImageAnnotatorClient

type ImageAnnotatorServer Uses

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 Uses

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

Image context and/or feature-specific parameters.

func (*ImageContext) Descriptor Uses

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

func (*ImageContext) GetCropHintsParams Uses

func (m *ImageContext) GetCropHintsParams() *CropHintsParams

func (*ImageContext) GetLanguageHints Uses

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

func (*ImageContext) GetLatLongRect Uses

func (m *ImageContext) GetLatLongRect() *LatLongRect

func (*ImageContext) GetProductSearchParams Uses

func (m *ImageContext) GetProductSearchParams() *ProductSearchParams

func (*ImageContext) GetWebDetectionParams Uses

func (m *ImageContext) GetWebDetectionParams() *WebDetectionParams

func (*ImageContext) ProtoMessage Uses

func (*ImageContext) ProtoMessage()

func (*ImageContext) Reset Uses

func (m *ImageContext) Reset()

func (*ImageContext) String Uses

func (m *ImageContext) String() string

func (*ImageContext) XXX_DiscardUnknown Uses

func (m *ImageContext) XXX_DiscardUnknown()

func (*ImageContext) XXX_Marshal Uses

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

func (*ImageContext) XXX_Merge Uses

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

func (*ImageContext) XXX_Size Uses

func (m *ImageContext) XXX_Size() int

func (*ImageContext) XXX_Unmarshal Uses

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

type ImageProperties Uses

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

Stores image properties, such as dominant colors.

func (*ImageProperties) Descriptor Uses

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

func (*ImageProperties) GetDominantColors Uses

func (m *ImageProperties) GetDominantColors() *DominantColorsAnnotation

func (*ImageProperties) ProtoMessage Uses

func (*ImageProperties) ProtoMessage()

func (*ImageProperties) Reset Uses

func (m *ImageProperties) Reset()

func (*ImageProperties) String Uses

func (m *ImageProperties) String() string

func (*ImageProperties) XXX_DiscardUnknown Uses

func (m *ImageProperties) XXX_DiscardUnknown()

func (*ImageProperties) XXX_Marshal Uses

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

func (*ImageProperties) XXX_Merge Uses

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

func (*ImageProperties) XXX_Size Uses

func (m *ImageProperties) XXX_Size() int

func (*ImageProperties) XXX_Unmarshal Uses

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

type ImageSource Uses

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

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

func (*ImageSource) Descriptor Uses

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

func (*ImageSource) GetGcsImageUri Uses

func (m *ImageSource) GetGcsImageUri() string

func (*ImageSource) GetImageUri Uses

func (m *ImageSource) GetImageUri() string

func (*ImageSource) ProtoMessage Uses

func (*ImageSource) ProtoMessage()

func (*ImageSource) Reset Uses

func (m *ImageSource) Reset()

func (*ImageSource) String Uses

func (m *ImageSource) String() string

func (*ImageSource) XXX_DiscardUnknown Uses

func (m *ImageSource) XXX_DiscardUnknown()

func (*ImageSource) XXX_Marshal Uses

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

func (*ImageSource) XXX_Merge Uses

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

func (*ImageSource) XXX_Size Uses

func (m *ImageSource) XXX_Size() int

func (*ImageSource) XXX_Unmarshal Uses

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

type ImportProductSetsGcsSource Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*ImportProductSetsGcsSource) Descriptor Uses

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

func (*ImportProductSetsGcsSource) GetCsvFileUri Uses

func (m *ImportProductSetsGcsSource) GetCsvFileUri() string

func (*ImportProductSetsGcsSource) ProtoMessage Uses

func (*ImportProductSetsGcsSource) ProtoMessage()

func (*ImportProductSetsGcsSource) Reset Uses

func (m *ImportProductSetsGcsSource) Reset()

func (*ImportProductSetsGcsSource) String Uses

func (m *ImportProductSetsGcsSource) String() string

func (*ImportProductSetsGcsSource) XXX_DiscardUnknown Uses

func (m *ImportProductSetsGcsSource) XXX_DiscardUnknown()

func (*ImportProductSetsGcsSource) XXX_Marshal Uses

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

func (*ImportProductSetsGcsSource) XXX_Merge Uses

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

func (*ImportProductSetsGcsSource) XXX_Size Uses

func (m *ImportProductSetsGcsSource) XXX_Size() int

func (*ImportProductSetsGcsSource) XXX_Unmarshal Uses

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

type ImportProductSetsInputConfig Uses

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

The input content for the `ImportProductSets` method.

func (*ImportProductSetsInputConfig) Descriptor Uses

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

func (*ImportProductSetsInputConfig) GetGcsSource Uses

func (m *ImportProductSetsInputConfig) GetGcsSource() *ImportProductSetsGcsSource

func (*ImportProductSetsInputConfig) GetSource Uses

func (m *ImportProductSetsInputConfig) GetSource() isImportProductSetsInputConfig_Source

func (*ImportProductSetsInputConfig) ProtoMessage Uses

func (*ImportProductSetsInputConfig) ProtoMessage()

func (*ImportProductSetsInputConfig) Reset Uses

func (m *ImportProductSetsInputConfig) Reset()

func (*ImportProductSetsInputConfig) String Uses

func (m *ImportProductSetsInputConfig) String() string

func (*ImportProductSetsInputConfig) XXX_DiscardUnknown Uses

func (m *ImportProductSetsInputConfig) XXX_DiscardUnknown()

func (*ImportProductSetsInputConfig) XXX_Marshal Uses

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

func (*ImportProductSetsInputConfig) XXX_Merge Uses

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

func (*ImportProductSetsInputConfig) XXX_OneofWrappers Uses

func (*ImportProductSetsInputConfig) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*ImportProductSetsInputConfig) XXX_Size Uses

func (m *ImportProductSetsInputConfig) XXX_Size() int

func (*ImportProductSetsInputConfig) XXX_Unmarshal Uses

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

type ImportProductSetsInputConfig_GcsSource Uses

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

type ImportProductSetsRequest Uses

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

Request message for the `ImportProductSets` method.

func (*ImportProductSetsRequest) Descriptor Uses

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

func (*ImportProductSetsRequest) GetInputConfig Uses

func (m *ImportProductSetsRequest) GetInputConfig() *ImportProductSetsInputConfig

func (*ImportProductSetsRequest) GetParent Uses

func (m *ImportProductSetsRequest) GetParent() string

func (*ImportProductSetsRequest) ProtoMessage Uses

func (*ImportProductSetsRequest) ProtoMessage()

func (*ImportProductSetsRequest) Reset Uses

func (m *ImportProductSetsRequest) Reset()

func (*ImportProductSetsRequest) String Uses

func (m *ImportProductSetsRequest) String() string

func (*ImportProductSetsRequest) XXX_DiscardUnknown Uses

func (m *ImportProductSetsRequest) XXX_DiscardUnknown()

func (*ImportProductSetsRequest) XXX_Marshal Uses

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

func (*ImportProductSetsRequest) XXX_Merge Uses

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

func (*ImportProductSetsRequest) XXX_Size Uses

func (m *ImportProductSetsRequest) XXX_Size() int

func (*ImportProductSetsRequest) XXX_Unmarshal Uses

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

type ImportProductSetsResponse Uses

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

Response message for the `ImportProductSets` method.

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

func (*ImportProductSetsResponse) Descriptor Uses

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

func (*ImportProductSetsResponse) GetReferenceImages Uses

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

func (*ImportProductSetsResponse) GetStatuses Uses

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

func (*ImportProductSetsResponse) ProtoMessage Uses

func (*ImportProductSetsResponse) ProtoMessage()

func (*ImportProductSetsResponse) Reset Uses

func (m *ImportProductSetsResponse) Reset()

func (*ImportProductSetsResponse) String Uses

func (m *ImportProductSetsResponse) String() string

func (*ImportProductSetsResponse) XXX_DiscardUnknown Uses

func (m *ImportProductSetsResponse) XXX_DiscardUnknown()

func (*ImportProductSetsResponse) XXX_Marshal Uses

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

func (*ImportProductSetsResponse) XXX_Merge Uses

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

func (*ImportProductSetsResponse) XXX_Size Uses

func (m *ImportProductSetsResponse) XXX_Size() int

func (*ImportProductSetsResponse) XXX_Unmarshal Uses

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

type InputConfig Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

The desired input location and metadata.

func (*InputConfig) Descriptor Uses

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

func (*InputConfig) GetContent Uses

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

func (*InputConfig) GetGcsSource Uses

func (m *InputConfig) GetGcsSource() *GcsSource

func (*InputConfig) GetMimeType Uses

func (m *InputConfig) GetMimeType() string

func (*InputConfig) ProtoMessage Uses

func (*InputConfig) ProtoMessage()

func (*InputConfig) Reset Uses

func (m *InputConfig) Reset()

func (*InputConfig) String Uses

func (m *InputConfig) String() string

func (*InputConfig) XXX_DiscardUnknown Uses

func (m *InputConfig) XXX_DiscardUnknown()

func (*InputConfig) XXX_Marshal Uses

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

func (*InputConfig) XXX_Merge Uses

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

func (*InputConfig) XXX_Size Uses

func (m *InputConfig) XXX_Size() int

func (*InputConfig) XXX_Unmarshal Uses

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

type LatLongRect Uses

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

Rectangle determined by min and max `LatLng` pairs.

func (*LatLongRect) Descriptor Uses

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

func (*LatLongRect) GetMaxLatLng Uses

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

func (*LatLongRect) GetMinLatLng Uses

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

func (*LatLongRect) ProtoMessage Uses

func (*LatLongRect) ProtoMessage()

func (*LatLongRect) Reset Uses

func (m *LatLongRect) Reset()

func (*LatLongRect) String Uses

func (m *LatLongRect) String() string

func (*LatLongRect) XXX_DiscardUnknown Uses

func (m *LatLongRect) XXX_DiscardUnknown()

func (*LatLongRect) XXX_Marshal Uses

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

func (*LatLongRect) XXX_Merge Uses

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

func (*LatLongRect) XXX_Size Uses

func (m *LatLongRect) XXX_Size() int

func (*LatLongRect) XXX_Unmarshal Uses

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

type Likelihood Uses

type Likelihood int32

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

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

func (Likelihood) EnumDescriptor Uses

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

func (Likelihood) String Uses

func (x Likelihood) String() string

type ListProductSetsRequest Uses

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

Request message for the `ListProductSets` method.

func (*ListProductSetsRequest) Descriptor Uses

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

func (*ListProductSetsRequest) GetPageSize Uses

func (m *ListProductSetsRequest) GetPageSize() int32

func (*ListProductSetsRequest) GetPageToken Uses

func (m *ListProductSetsRequest) GetPageToken() string

func (*ListProductSetsRequest) GetParent Uses

func (m *ListProductSetsRequest) GetParent() string

func (*ListProductSetsRequest) ProtoMessage Uses

func (*ListProductSetsRequest) ProtoMessage()

func (*ListProductSetsRequest) Reset Uses

func (m *ListProductSetsRequest) Reset()

func (*ListProductSetsRequest) String Uses

func (m *ListProductSetsRequest) String() string

func (*ListProductSetsRequest) XXX_DiscardUnknown Uses

func (m *ListProductSetsRequest) XXX_DiscardUnknown()

func (*ListProductSetsRequest) XXX_Marshal Uses

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

func (*ListProductSetsRequest) XXX_Merge Uses

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

func (*ListProductSetsRequest) XXX_Size Uses

func (m *ListProductSetsRequest) XXX_Size() int

func (*ListProductSetsRequest) XXX_Unmarshal Uses

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

type ListProductSetsResponse Uses

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

Response message for the `ListProductSets` method.

func (*ListProductSetsResponse) Descriptor Uses

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

func (*ListProductSetsResponse) GetNextPageToken Uses

func (m *ListProductSetsResponse) GetNextPageToken() string

func (*ListProductSetsResponse) GetProductSets Uses

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

func (*ListProductSetsResponse) ProtoMessage Uses

func (*ListProductSetsResponse) ProtoMessage()

func (*ListProductSetsResponse) Reset Uses

func (m *ListProductSetsResponse) Reset()

func (*ListProductSetsResponse) String Uses

func (m *ListProductSetsResponse) String() string

func (*ListProductSetsResponse) XXX_DiscardUnknown Uses

func (m *ListProductSetsResponse) XXX_DiscardUnknown()

func (*ListProductSetsResponse) XXX_Marshal Uses

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

func (*ListProductSetsResponse) XXX_Merge Uses

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

func (*ListProductSetsResponse) XXX_Size Uses

func (m *ListProductSetsResponse) XXX_Size() int

func (*ListProductSetsResponse) XXX_Unmarshal Uses

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

type ListProductsInProductSetRequest Uses

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

Request message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetRequest) Descriptor Uses

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

func (*ListProductsInProductSetRequest) GetName Uses

func (m *ListProductsInProductSetRequest) GetName() string

func (*ListProductsInProductSetRequest) GetPageSize Uses

func (m *ListProductsInProductSetRequest) GetPageSize() int32

func (*ListProductsInProductSetRequest) GetPageToken Uses

func (m *ListProductsInProductSetRequest) GetPageToken() string

func (*ListProductsInProductSetRequest) ProtoMessage Uses

func (*ListProductsInProductSetRequest) ProtoMessage()

func (*ListProductsInProductSetRequest) Reset Uses

func (m *ListProductsInProductSetRequest) Reset()

func (*ListProductsInProductSetRequest) String Uses

func (m *ListProductsInProductSetRequest) String() string

func (*ListProductsInProductSetRequest) XXX_DiscardUnknown Uses

func (m *ListProductsInProductSetRequest) XXX_DiscardUnknown()

func (*ListProductsInProductSetRequest) XXX_Marshal Uses

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

func (*ListProductsInProductSetRequest) XXX_Merge Uses

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

func (*ListProductsInProductSetRequest) XXX_Size Uses

func (m *ListProductsInProductSetRequest) XXX_Size() int

func (*ListProductsInProductSetRequest) XXX_Unmarshal Uses

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

type ListProductsInProductSetResponse Uses

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

Response message for the `ListProductsInProductSet` method.

func (*ListProductsInProductSetResponse) Descriptor Uses

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

func (*ListProductsInProductSetResponse) GetNextPageToken Uses

func (m *ListProductsInProductSetResponse) GetNextPageToken() string

func (*ListProductsInProductSetResponse) GetProducts Uses

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

func (*ListProductsInProductSetResponse) ProtoMessage Uses

func (*ListProductsInProductSetResponse) ProtoMessage()

func (*ListProductsInProductSetResponse) Reset Uses

func (m *ListProductsInProductSetResponse) Reset()

func (*ListProductsInProductSetResponse) String Uses

func (m *ListProductsInProductSetResponse) String() string

func (*ListProductsInProductSetResponse) XXX_DiscardUnknown Uses

func (m *ListProductsInProductSetResponse) XXX_DiscardUnknown()

func (*ListProductsInProductSetResponse) XXX_Marshal Uses

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

func (*ListProductsInProductSetResponse) XXX_Merge Uses

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

func (*ListProductsInProductSetResponse) XXX_Size Uses

func (m *ListProductsInProductSetResponse) XXX_Size() int

func (*ListProductsInProductSetResponse) XXX_Unmarshal Uses

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

type ListProductsRequest Uses

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

Request message for the `ListProducts` method.

func (*ListProductsRequest) Descriptor Uses

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

func (*ListProductsRequest) GetPageSize Uses

func (m *ListProductsRequest) GetPageSize() int32

func (*ListProductsRequest) GetPageToken Uses

func (m *ListProductsRequest) GetPageToken() string

func (*ListProductsRequest) GetParent Uses

func (m *ListProductsRequest) GetParent() string

func (*ListProductsRequest) ProtoMessage Uses

func (*ListProductsRequest) ProtoMessage()

func (*ListProductsRequest) Reset Uses

func (m *ListProductsRequest) Reset()

func (*ListProductsRequest) String Uses

func (m *ListProductsRequest) String() string

func (*ListProductsRequest) XXX_DiscardUnknown Uses

func (m *ListProductsRequest) XXX_DiscardUnknown()

func (*ListProductsRequest) XXX_Marshal Uses

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

func (*ListProductsRequest) XXX_Merge Uses

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

func (*ListProductsRequest) XXX_Size Uses

func (m *ListProductsRequest) XXX_Size() int

func (*ListProductsRequest) XXX_Unmarshal Uses

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

type ListProductsResponse Uses

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

Response message for the `ListProducts` method.

func (*ListProductsResponse) Descriptor Uses

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

func (*ListProductsResponse) GetNextPageToken Uses

func (m *ListProductsResponse) GetNextPageToken() string

func (*ListProductsResponse) GetProducts Uses

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

func (*ListProductsResponse) ProtoMessage Uses

func (*ListProductsResponse) ProtoMessage()

func (*ListProductsResponse) Reset Uses

func (m *ListProductsResponse) Reset()

func (*ListProductsResponse) String Uses

func (m *ListProductsResponse) String() string

func (*ListProductsResponse) XXX_DiscardUnknown Uses

func (m *ListProductsResponse) XXX_DiscardUnknown()

func (*ListProductsResponse) XXX_Marshal Uses

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

func (*ListProductsResponse) XXX_Merge Uses

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

func (*ListProductsResponse) XXX_Size Uses

func (m *ListProductsResponse) XXX_Size() int

func (*ListProductsResponse) XXX_Unmarshal Uses

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

type ListReferenceImagesRequest Uses

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

Request message for the `ListReferenceImages` method.

func (*ListReferenceImagesRequest) Descriptor Uses

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

func (*ListReferenceImagesRequest) GetPageSize Uses

func (m *ListReferenceImagesRequest) GetPageSize() int32

func (*ListReferenceImagesRequest) GetPageToken Uses

func (m *ListReferenceImagesRequest) GetPageToken() string

func (*ListReferenceImagesRequest) GetParent Uses

func (m *ListReferenceImagesRequest) GetParent() string

func (*ListReferenceImagesRequest) ProtoMessage Uses

func (*ListReferenceImagesRequest) ProtoMessage()

func (*ListReferenceImagesRequest) Reset Uses

func (m *ListReferenceImagesRequest) Reset()

func (*ListReferenceImagesRequest) String Uses

func (m *ListReferenceImagesRequest) String() string

func (*ListReferenceImagesRequest) XXX_DiscardUnknown Uses

func (m *ListReferenceImagesRequest) XXX_DiscardUnknown()

func (*ListReferenceImagesRequest) XXX_Marshal Uses

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

func (*ListReferenceImagesRequest) XXX_Merge Uses

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

func (*ListReferenceImagesRequest) XXX_Size Uses

func (m *ListReferenceImagesRequest) XXX_Size() int

func (*ListReferenceImagesRequest) XXX_Unmarshal Uses

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

type ListReferenceImagesResponse Uses

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

Response message for the `ListReferenceImages` method.

func (*ListReferenceImagesResponse) Descriptor Uses

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

func (*ListReferenceImagesResponse) GetNextPageToken Uses

func (m *ListReferenceImagesResponse) GetNextPageToken() string

func (*ListReferenceImagesResponse) GetPageSize Uses

func (m *ListReferenceImagesResponse) GetPageSize() int32

func (*ListReferenceImagesResponse) GetReferenceImages Uses

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

func (*ListReferenceImagesResponse) ProtoMessage Uses

func (*ListReferenceImagesResponse) ProtoMessage()

func (*ListReferenceImagesResponse) Reset Uses

func (m *ListReferenceImagesResponse) Reset()

func (*ListReferenceImagesResponse) String Uses

func (m *ListReferenceImagesResponse) String() string

func (*ListReferenceImagesResponse) XXX_DiscardUnknown Uses

func (m *ListReferenceImagesResponse) XXX_DiscardUnknown()

func (*ListReferenceImagesResponse) XXX_Marshal Uses

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

func (*ListReferenceImagesResponse) XXX_Merge Uses

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

func (*ListReferenceImagesResponse) XXX_Size Uses

func (m *ListReferenceImagesResponse) XXX_Size() int

func (*ListReferenceImagesResponse) XXX_Unmarshal Uses

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

type LocalizedObjectAnnotation Uses

type LocalizedObjectAnnotation struct {
    // Object ID that should align with EntityAnnotation mid.
    Mid string `protobuf:"bytes,1,opt,name=mid,proto3" json:"mid,omitempty"`
    // The BCP-47 language code, such as "en-US" or "sr-Latn". For more
    // information, see
    // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
    LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
    // Object name, expressed in its `language_code` language.
    Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
    // Score of the result. Range [0, 1].
    Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"`
    // Image region to which this object belongs. This must be populated.
    BoundingPoly         *BoundingPoly `protobuf:"bytes,5,opt,name=bounding_poly,json=boundingPoly,proto3" json:"bounding_poly,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

Set of detected objects with bounding boxes.

func (*LocalizedObjectAnnotation) Descriptor Uses

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

func (*LocalizedObjectAnnotation) GetBoundingPoly Uses

func (m *LocalizedObjectAnnotation) GetBoundingPoly() *BoundingPoly

func (*LocalizedObjectAnnotation) GetLanguageCode Uses

func (m *LocalizedObjectAnnotation) GetLanguageCode() string

func (*LocalizedObjectAnnotation) GetMid Uses

func (m *LocalizedObjectAnnotation) GetMid() string

func (*LocalizedObjectAnnotation) GetName Uses

func (m *LocalizedObjectAnnotation) GetName() string

func (*LocalizedObjectAnnotation) GetScore Uses

func (m *LocalizedObjectAnnotation) GetScore() float32

func (*LocalizedObjectAnnotation) ProtoMessage Uses

func (*LocalizedObjectAnnotation) ProtoMessage()

func (*LocalizedObjectAnnotation) Reset Uses

func (m *LocalizedObjectAnnotation) Reset()

func (*LocalizedObjectAnnotation) String Uses

func (m *LocalizedObjectAnnotation) String() string

func (*LocalizedObjectAnnotation) XXX_DiscardUnknown Uses

func (m *LocalizedObjectAnnotation) XXX_DiscardUnknown()

func (*LocalizedObjectAnnotation) XXX_Marshal Uses

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

func (*LocalizedObjectAnnotation) XXX_Merge Uses

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

func (*LocalizedObjectAnnotation) XXX_Size Uses

func (m *LocalizedObjectAnnotation) XXX_Size() int

func (*LocalizedObjectAnnotation) XXX_Unmarshal Uses

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

type LocationInfo Uses

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

Detected entity location information.

func (*LocationInfo) Descriptor Uses

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

func (*LocationInfo) GetLatLng Uses

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

func (*LocationInfo) ProtoMessage Uses

func (*LocationInfo) ProtoMessage()

func (*LocationInfo) Reset Uses

func (m *LocationInfo) Reset()

func (*LocationInfo) String Uses

func (m *LocationInfo) String() string

func (*LocationInfo) XXX_DiscardUnknown Uses

func (m *LocationInfo) XXX_DiscardUnknown()

func (*LocationInfo) XXX_Marshal Uses

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

func (*LocationInfo) XXX_Merge Uses

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

func (*LocationInfo) XXX_Size Uses

func (m *LocationInfo) XXX_Size() int

func (*LocationInfo) XXX_Unmarshal Uses

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

type NormalizedVertex Uses

type NormalizedVertex struct {
    // X coordinate.
    X   float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
    // Y coordinate.
    Y                    float32  `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.

func (*NormalizedVertex) Descriptor Uses

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

func (*NormalizedVertex) GetX Uses

func (m *NormalizedVertex) GetX() float32

func (*NormalizedVertex) GetY Uses

func (m *NormalizedVertex) GetY() float32

func (*NormalizedVertex) ProtoMessage Uses

func (*NormalizedVertex) ProtoMessage()

func (*NormalizedVertex) Reset Uses

func (m *NormalizedVertex) Reset()

func (*NormalizedVertex) String Uses

func (m *NormalizedVertex) String() string

func (*NormalizedVertex) XXX_DiscardUnknown Uses

func (m *NormalizedVertex) XXX_DiscardUnknown()

func (*NormalizedVertex) XXX_Marshal Uses

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

func (*NormalizedVertex) XXX_Merge Uses

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

func (*NormalizedVertex) XXX_Size Uses

func (m *NormalizedVertex) XXX_Size() int

func (*NormalizedVertex) XXX_Unmarshal Uses

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

type OperationMetadata Uses

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

Contains metadata for the BatchAnnotateImages operation.

func (*OperationMetadata) Descriptor Uses

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

func (*OperationMetadata) GetCreateTime Uses

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

func (*OperationMetadata) GetState Uses

func (m *OperationMetadata) GetState() OperationMetadata_State

func (*OperationMetadata) GetUpdateTime Uses

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

func (*OperationMetadata) ProtoMessage Uses

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) Reset Uses

func (m *OperationMetadata) Reset()

func (*OperationMetadata) String Uses

func (m *OperationMetadata) String() string

func (*OperationMetadata) XXX_DiscardUnknown Uses

func (m *OperationMetadata) XXX_DiscardUnknown()

func (*OperationMetadata) XXX_Marshal Uses

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

func (*OperationMetadata) XXX_Merge Uses

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

func (*OperationMetadata) XXX_Size Uses

func (m *OperationMetadata) XXX_Size() int

func (*OperationMetadata) XXX_Unmarshal Uses

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

type OperationMetadata_State Uses

type OperationMetadata_State int32

Batch operation states.

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

func (OperationMetadata_State) EnumDescriptor Uses

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

func (OperationMetadata_State) String Uses

func (x OperationMetadata_State) String() string

type OutputConfig Uses

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

The desired output location and metadata.

func (*OutputConfig) Descriptor Uses

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

func (*OutputConfig) GetBatchSize Uses

func (m *OutputConfig) GetBatchSize() int32

func (*OutputConfig) GetGcsDestination Uses

func (m *OutputConfig) GetGcsDestination() *GcsDestination

func (*OutputConfig) ProtoMessage Uses

func (*OutputConfig) ProtoMessage()

func (*OutputConfig) Reset Uses

func (m *OutputConfig) Reset()

func (*OutputConfig) String Uses

func (m *OutputConfig) String() string

func (*OutputConfig) XXX_DiscardUnknown Uses

func (m *OutputConfig) XXX_DiscardUnknown()

func (*OutputConfig) XXX_Marshal Uses

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

func (*OutputConfig) XXX_Merge Uses

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

func (*OutputConfig) XXX_Size Uses

func (m *OutputConfig) XXX_Size() int

func (*OutputConfig) XXX_Unmarshal Uses

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

type Page Uses

type Page struct {
    // Additional information detected on the page.
    Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
    // Page width. For PDFs the unit is points. For images (including
    // TIFFs) the unit is pixels.
    Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"`
    // Page height. For PDFs the unit is points. For images (including
    // TIFFs) the unit is pixels.
    Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
    // List of blocks of text, images etc on this page.
    Blocks []*Block `protobuf:"bytes,4,rep,name=blocks,proto3" json:"blocks,omitempty"`
    // Confidence of the OCR results on the page. Range [0, 1].
    Confidence           float32  `protobuf:"fixed32,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

Detected page from OCR.

func (*Page) Descriptor Uses

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

func (*Page) GetBlocks Uses

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

func (*Page) GetConfidence Uses

func (m *Page) GetConfidence() float32

func (*Page) GetHeight Uses

func (m *Page) GetHeight() int32

func (*Page) GetProperty Uses

func (m *Page) GetProperty() *TextAnnotation_TextProperty

func (*Page) GetWidth Uses

func (m *Page) GetWidth() int32

func (*Page) ProtoMessage Uses

func (*Page) ProtoMessage()

func (*Page) Reset Uses

func (m *Page) Reset()

func (*Page) String Uses

func (m *Page) String() string

func (*Page) XXX_DiscardUnknown Uses

func (m *Page) XXX_DiscardUnknown()

func (*Page) XXX_Marshal Uses

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

func (*Page) XXX_Merge Uses

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

func (*Page) XXX_Size Uses

func (m *Page) XXX_Size() int

func (*Page) XXX_Unmarshal Uses

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

type Paragraph Uses

type Paragraph struct {
    // Additional information detected for the paragraph.
    Property *TextAnnotation_TextProperty `protobuf:"bytes,1,opt,name=property,proto3" json:"property,omitempty"`
    // The bounding box for the paragraph.
    // The vertices are in the order of top-left, top-right, bottom-right,
    // bottom-left. When a rotation of the bounding box is detected the rotation
    // is represented as around the top-left corner as defined when the text is
    // read in the 'natural' orientation.
    // For example:
    //   * when the text is horizontal it might look like:
    //      0----1
    //      |    |
    //      3----2
    //   * when it's rotated 180 degrees around the top-left corner it becomes:
    //      2----3
    //      |    |
    //      1----0
    //   and the 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 words in this paragraph.
    Words []*Word `protobuf:"bytes,3,rep,name=words,proto3" json:"words,omitempty"`
    // Confidence of the OCR results for the paragraph. Range [0, 1].
    Confidence           float32  `protobuf:"fixed32,4,opt,name=confidence,proto3" json:"confidence,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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

func (*Paragraph) Descriptor Uses

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

func (*Paragraph) GetBoundingBox Uses

func (m *Paragraph) GetBoundingBox() *BoundingPoly

func (*Paragraph) GetConfidence Uses

func (m *Paragraph) GetConfidence() float32

func (*Paragraph) GetProperty Uses

func (m *Paragraph) GetProperty() *TextAnnotation_TextProperty

func (*Paragraph) GetWords Uses

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

func (*Paragraph) ProtoMessage Uses

func (*Paragraph) ProtoMessage()

func (*Paragraph) Reset Uses

func (m *Paragraph) Reset()

func (*Paragraph) String Uses

func (m *Paragraph) String() string

func (*Paragraph) XXX_DiscardUnknown Uses

func (m *Paragraph) XXX_DiscardUnknown()

func (*Paragraph) XXX_Marshal Uses

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

func (*Paragraph) XXX_Merge Uses

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

func (*Paragraph) XXX_Size Uses

func (m *Paragraph) XXX_Size() int

func (*Paragraph) XXX_Unmarshal Uses

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

type Position Uses

type Position struct {
    // X coordinate.
    X   float32 `protobuf:"fixed32,1,opt,name=x,proto3" json:"x,omitempty"`
    // Y coordinate.
    Y   float32 `protobuf:"fixed32,2,opt,name=y,proto3" json:"y,omitempty"`
    // Z coordinate (or depth).
    Z                    float32  `protobuf:"fixed32,3,opt,name=z,proto3" json:"z,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

A 3D position in the image, used primarily for Face detection landmarks. A valid Position must have both x and y coordinates. The position coordinates are in the same scale as the original image.

func (*Position) Descriptor Uses

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

func (*Position) GetX Uses

func (m *Position) GetX() float32

func (*Position)