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. SeeGoogle Cloud Documentfor more details.
getGroundingConfig
Required. The resource name of the grounding config, such asprojects/*/locations/global/groundingConfigs/default_grounding_config.
Returns
Type
Description
string
setGroundingConfig
Required. The resource name of the grounding config, such asprojects/*/locations/global/groundingConfigs/default_grounding_config.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAnswerCandidate
Answer candidate to check. It can have a maximum length of 4096 tokens.
Returns
Type
Description
string
setAnswerCandidate
Answer candidate to check. It can have a maximum length of 4096 tokens.
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.
SeeGoogle Cloud
Documentfor more details.
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.
SeeGoogle Cloud
Documentfor more details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Discovery Engine V1 Client - Class CheckGroundingRequest (1.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.7.0 (latest)](/php/docs/reference/cloud-discoveryengine/latest/V1.CheckGroundingRequest)\n- [1.6.1](/php/docs/reference/cloud-discoveryengine/1.6.1/V1.CheckGroundingRequest)\n- [1.5.1](/php/docs/reference/cloud-discoveryengine/1.5.1/V1.CheckGroundingRequest)\n- [1.4.0](/php/docs/reference/cloud-discoveryengine/1.4.0/V1.CheckGroundingRequest)\n- [1.3.3](/php/docs/reference/cloud-discoveryengine/1.3.3/V1.CheckGroundingRequest)\n- [1.2.0](/php/docs/reference/cloud-discoveryengine/1.2.0/V1.CheckGroundingRequest)\n- [1.1.0](/php/docs/reference/cloud-discoveryengine/1.1.0/V1.CheckGroundingRequest)\n- [1.0.0](/php/docs/reference/cloud-discoveryengine/1.0.0/V1.CheckGroundingRequest)\n- [0.11.3](/php/docs/reference/cloud-discoveryengine/0.11.3/V1.CheckGroundingRequest)\n- [0.8.0](/php/docs/reference/cloud-discoveryengine/0.8.0/V1.CheckGroundingRequest)\n- [0.7.1](/php/docs/reference/cloud-discoveryengine/0.7.1/V1.CheckGroundingRequest)\n- [0.6.0](/php/docs/reference/cloud-discoveryengine/0.6.0/V1.CheckGroundingRequest)\n- [0.5.0](/php/docs/reference/cloud-discoveryengine/0.5.0/V1.CheckGroundingRequest)\n- [0.4.0](/php/docs/reference/cloud-discoveryengine/0.4.0/V1.CheckGroundingRequest)\n- [0.3.0](/php/docs/reference/cloud-discoveryengine/0.3.0/V1.CheckGroundingRequest)\n- [0.2.0](/php/docs/reference/cloud-discoveryengine/0.2.0/V1.CheckGroundingRequest)\n- [0.1.1](/php/docs/reference/cloud-discoveryengine/0.1.1/V1.CheckGroundingRequest) \nReference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CheckGroundingRequest.\n\nRequest message for\n[GroundedGenerationService.CheckGrounding](/php/docs/reference/cloud-discoveryengine/latest/V1.Client.GroundedGenerationServiceClient#_Google_Cloud_DiscoveryEngine_V1_Client_GroundedGenerationServiceClient__checkGrounding__)\nmethod.\n\nGenerated from protobuf message `google.cloud.discoveryengine.v1.CheckGroundingRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DiscoveryEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getGroundingConfig\n\nRequired. The resource name of the grounding config, such as\n`projects/*/locations/global/groundingConfigs/default_grounding_config`.\n\n### setGroundingConfig\n\nRequired. The resource name of the grounding config, such as\n`projects/*/locations/global/groundingConfigs/default_grounding_config`.\n\n### getAnswerCandidate\n\nAnswer candidate to check. It can have a maximum length of 4096 tokens.\n\n### setAnswerCandidate\n\nAnswer candidate to check. It can have a maximum length of 4096 tokens.\n\n### getFacts\n\nList of facts for the grounding check.\n\nWe support up to 200 facts.\n\n### setFacts\n\nList of facts for the grounding check.\n\nWe support up to 200 facts.\n\n### getGroundingSpec\n\nConfiguration of the grounding check.\n\n### hasGroundingSpec\n\n### clearGroundingSpec\n\n### setGroundingSpec\n\nConfiguration of the grounding check.\n\n### getUserLabels\n\nThe user labels applied to a resource must meet the following requirements:\n\n- Each resource can have multiple labels, up to a maximum of 64.\n\n- Each label must be a key-value pair.\n\n- 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.\n- 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.\n- The key portion of a label must be unique. However, you can use the same key with multiple resources.\n- Keys must start with a lowercase letter or international character. See [Google Cloud\n Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.\n\n### setUserLabels\n\nThe user labels applied to a resource must meet the following requirements:\n\n- Each resource can have multiple labels, up to a maximum of 64.\n\n- Each label must be a key-value pair.\n\n- 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.\n- 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.\n- The key portion of a label must be unique. However, you can use the same key with multiple resources.\n- Keys must start with a lowercase letter or international character. See [Google Cloud\n Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details."]]