Class: Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1Image
 
 
- Includes:
 - Core::Hashable, Core::JsonObjectSupport
 
- Defined in:
 - lib/google/apis/vision_v1p2beta1/classes.rb,
lib/google/apis/vision_v1p2beta1/representations.rb,
lib/google/apis/vision_v1p2beta1/representations.rb 
Overview
Client image to perform Google Cloud Vision API tasks over.
Instance Attribute Summary collapse
- 
  
    
      #content  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Image content, represented as a stream of bytes.
 - 
  
    
      #source  ⇒ Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageSource 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
External image source (Google Cloud Storage or web URL image location).
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ GoogleCloudVisionV1p2beta1Image 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of GoogleCloudVisionV1p2beta1Image.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Constructor Details
#initialize(**args) ⇒ GoogleCloudVisionV1p2beta1Image
Returns a new instance of GoogleCloudVisionV1p2beta1Image.
      3674 3675 3676  | 
    
      # File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3674 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#content ⇒ String
Image content, represented as a stream of bytes. Note: As with all bytes
fields, protobuffers use a pure binary representation, whereas JSON
representations use base64. Currently, this field only works for
BatchAnnotateImages requests. It does not work for AsyncBatchAnnotateImages
requests.
Corresponds to the JSON property content
NOTE: Values are automatically base64 encoded/decoded in the client library.
      3667 3668 3669  | 
    
      # File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3667 def content @content end  | 
  
#source ⇒ Google::Apis::VisionV1p2beta1::GoogleCloudVisionV1p2beta1ImageSource
External image source (Google Cloud Storage or web URL image location).
Corresponds to the JSON property source
      3672 3673 3674  | 
    
      # File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3672 def source @source end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      3679 3680 3681 3682  | 
    
      # File 'lib/google/apis/vision_v1p2beta1/classes.rb', line 3679 def update!(**args) @content = args[:content] if args.key?(:content) @source = args[:source] if args.key?(:source) end  |