Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingRequest
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Request message for GroundedGenerationService.CheckGrounding method.
Instance Attribute Summary collapse
-
#answer_candidate ⇒ String
Answer candidate to check.
-
#facts ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact>
List of facts for the grounding check.
-
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingSpec
Specification for the grounding check.
-
#user_labels ⇒ Hash<String,String>
The user labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CheckGroundingRequest
constructor
A new instance of GoogleCloudDiscoveryengineV1CheckGroundingRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1CheckGroundingRequest
Returns a new instance of GoogleCloudDiscoveryengineV1CheckGroundingRequest.
1869 1870 1871 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1869 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_candidate ⇒ String
Answer candidate to check. Can have a maximum length of 1024 characters.
Corresponds to the JSON property answerCandidate
1842 1843 1844 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1842 def answer_candidate @answer_candidate end |
#facts ⇒ Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1GroundingFact>
List of facts for the grounding check. We support up to 200 facts.
Corresponds to the JSON property facts
1847 1848 1849 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1847 def facts @facts end |
#grounding_spec ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1CheckGroundingSpec
Specification for the grounding check.
Corresponds to the JSON property groundingSpec
1852 1853 1854 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1852 def grounding_spec @grounding_spec end |
#user_labels ⇒ Hash<String,String>
The user labels applied to a resource must meet the following requirements: *
Each resource can have multiple labels, up to a maximum of 64. * Each label
must be a key-value pair. * Keys have a minimum length of 1 character and a
maximum length of 63 characters and cannot be empty. Values can be empty and
have a maximum length of 63 characters. * Keys and values can contain only
lowercase letters, numeric characters, underscores, and dashes. All characters
must use UTF-8 encoding, and international characters are allowed. * The key
portion of a label must be unique. However, you can use the same key with
multiple resources. * Keys must start with a lowercase letter or international
character. See Google Cloud Document for more details.
Corresponds to the JSON property userLabels
1867 1868 1869 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1867 def user_labels @user_labels end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1874 1875 1876 1877 1878 1879 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1874 def update!(**args) @answer_candidate = args[:answer_candidate] if args.key?(:answer_candidate) @facts = args[:facts] if args.key?(:facts) @grounding_spec = args[:grounding_spec] if args.key?(:grounding_spec) @user_labels = args[:user_labels] if args.key?(:user_labels) end |