Class: Google::Apis::FirebasemlV2beta::GroundingMetadata

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

Overview

Metadata returned to client when grounding is enabled.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GroundingMetadata

Returns a new instance of GroundingMetadata.



685
686
687
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 685

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

Instance Attribute Details

#retrieval_queriesArray<String>

Optional. Queries executed by the retrieval tools. Corresponds to the JSON property retrievalQueries

Returns:

  • (Array<String>)


673
674
675
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 673

def retrieval_queries
  @retrieval_queries
end

#search_entry_pointGoogle::Apis::FirebasemlV2beta::SearchEntryPoint

Google search entry point. Corresponds to the JSON property searchEntryPoint



678
679
680
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 678

def search_entry_point
  @search_entry_point
end

#web_search_queriesArray<String>

Optional. Web search queries for the following-up web search. Corresponds to the JSON property webSearchQueries

Returns:

  • (Array<String>)


683
684
685
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 683

def web_search_queries
  @web_search_queries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



690
691
692
693
694
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 690

def update!(**args)
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
  @search_entry_point = args[:search_entry_point] if args.key?(:search_entry_point)
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
end