Class: Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::VisionV1::GoogleCloudVisionV1p2beta1ImageAnnotationContext
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/vision_v1/classes.rb,
 generated/google/apis/vision_v1/representations.rb,
 generated/google/apis/vision_v1/representations.rb
Overview
If an image was produced from a file (e.g. a PDF), this message gives information about the source of that image.
Instance Attribute Summary collapse
- 
  
    
      #page_number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If the file was a PDF or TIFF, this field gives the page number within the file used to produce the image. 
- 
  
    
      #uri  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The URI of the file used to produce the image. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudVisionV1p2beta1ImageAnnotationContext 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of GoogleCloudVisionV1p2beta1ImageAnnotationContext. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1ImageAnnotationContext
Returns a new instance of GoogleCloudVisionV1p2beta1ImageAnnotationContext
| 1712 1713 1714 | # File 'generated/google/apis/vision_v1/classes.rb', line 1712 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#page_number ⇒ Fixnum
If the file was a PDF or TIFF, this field gives the page number within
the file used to produce the image.
Corresponds to the JSON property pageNumber
| 1705 1706 1707 | # File 'generated/google/apis/vision_v1/classes.rb', line 1705 def page_number @page_number end | 
#uri ⇒ String
The URI of the file used to produce the image.
Corresponds to the JSON property uri
| 1710 1711 1712 | # File 'generated/google/apis/vision_v1/classes.rb', line 1710 def uri @uri end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1717 1718 1719 1720 | # File 'generated/google/apis/vision_v1/classes.rb', line 1717 def update!(**args) @page_number = args[:page_number] if args.key?(:page_number) @uri = args[:uri] if args.key?(:uri) end |