Class: Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::LanguageV1beta1::AnalyzeSyntaxResponse
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/language_v1beta1/classes.rb,
 generated/google/apis/language_v1beta1/representations.rb,
 generated/google/apis/language_v1beta1/representations.rb
Overview
The syntax analysis response message.
Instance Attribute Summary collapse
- 
  
    
      #language  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language. 
- 
  
    
      #sentences  ⇒ Array<Google::Apis::LanguageV1beta1::Sentence> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Sentences in the input document. 
- 
  
    
      #tokens  ⇒ Array<Google::Apis::LanguageV1beta1::Token> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Tokens, along with their syntactic information, in the input document. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ AnalyzeSyntaxResponse 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of AnalyzeSyntaxResponse. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AnalyzeSyntaxResponse
Returns a new instance of AnalyzeSyntaxResponse
| 186 187 188 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 186 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#language ⇒ String
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See Document.language field for more details.
Corresponds to the JSON property language
| 174 175 176 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 174 def language @language end | 
#sentences ⇒ Array<Google::Apis::LanguageV1beta1::Sentence>
Sentences in the input document.
Corresponds to the JSON property sentences
| 179 180 181 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 179 def sentences @sentences end | 
#tokens ⇒ Array<Google::Apis::LanguageV1beta1::Token>
Tokens, along with their syntactic information, in the input document.
Corresponds to the JSON property tokens
| 184 185 186 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 184 def tokens @tokens end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 191 192 193 194 195 | # File 'generated/google/apis/language_v1beta1/classes.rb', line 191 def update!(**args) @language = args[:language] if args.key?(:language) @sentences = args[:sentences] if args.key?(:sentences) @tokens = args[:tokens] if args.key?(:tokens) end |