Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultContent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Google Search result content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1GoogleSearchResultContent

Returns a new instance of GenaiVertexV1beta1GoogleSearchResultContent.



2943
2944
2945
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2943

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#is_errorBoolean Also known as: is_error?

Whether the Google Search resulted in an error. Corresponds to the JSON property isError

Returns:

  • (Boolean)


2935
2936
2937
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2935

def is_error
  @is_error
end

#resultArray<Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1GoogleSearchResultContentGoogleSearchResult>

Required. The results of the Google Search. Corresponds to the JSON property result



2941
2942
2943
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2941

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2948
2949
2950
2951
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 2948

def update!(**args)
  @is_error = args[:is_error] if args.key?(:is_error)
  @result = args[:result] if args.key?(:result)
end