public interface CheckGroundingRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUserLabels(String key)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
String |
getAnswerCandidate()
Answer candidate to check.
|
com.google.protobuf.ByteString |
getAnswerCandidateBytes()
Answer candidate to check.
|
GroundingFact |
getFacts(int index)
List of facts for the grounding check.
|
int |
getFactsCount()
List of facts for the grounding check.
|
List<GroundingFact> |
getFactsList()
List of facts for the grounding check.
|
GroundingFactOrBuilder |
getFactsOrBuilder(int index)
List of facts for the grounding check.
|
List<? extends GroundingFactOrBuilder> |
getFactsOrBuilderList()
List of facts for the grounding check.
|
String |
getGroundingConfig()
Required.
|
com.google.protobuf.ByteString |
getGroundingConfigBytes()
Required.
|
CheckGroundingSpec |
getGroundingSpec()
Configuration of the grounding check.
|
CheckGroundingSpecOrBuilder |
getGroundingSpecOrBuilder()
Configuration of the grounding check.
|
Map<String,String> |
getUserLabels()
Deprecated.
|
int |
getUserLabelsCount()
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
Map<String,String> |
getUserLabelsMap()
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
String |
getUserLabelsOrDefault(String key,
String defaultValue)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
String |
getUserLabelsOrThrow(String key)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
boolean |
hasGroundingSpec()
Configuration of the grounding check.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getGroundingConfig()
Required. The resource name of the grounding config, such as `projects/*/locations/global/groundingConfigs/default_grounding_config`.
string grounding_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
com.google.protobuf.ByteString getGroundingConfigBytes()
Required. The resource name of the grounding config, such as `projects/*/locations/global/groundingConfigs/default_grounding_config`.
string grounding_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
String getAnswerCandidate()
Answer candidate to check. Can have a maximum length of 1024 characters.
string answer_candidate = 2;com.google.protobuf.ByteString getAnswerCandidateBytes()
Answer candidate to check. Can have a maximum length of 1024 characters.
string answer_candidate = 2;List<GroundingFact> getFactsList()
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;GroundingFact getFacts(int index)
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;int getFactsCount()
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;List<? extends GroundingFactOrBuilder> getFactsOrBuilderList()
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;GroundingFactOrBuilder getFactsOrBuilder(int index)
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;boolean hasGroundingSpec()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;CheckGroundingSpec getGroundingSpec()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;CheckGroundingSpecOrBuilder getGroundingSpecOrBuilder()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;int getUserLabelsCount()
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](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 5;boolean containsUserLabels(String key)
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](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 5;@Deprecated Map<String,String> getUserLabels()
getUserLabelsMap() instead.Map<String,String> getUserLabelsMap()
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](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 5;String getUserLabelsOrDefault(String key, String defaultValue)
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](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 5;String getUserLabelsOrThrow(String key)
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](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) for more details.
map<string, string> user_labels = 5;Copyright © 2024 Google LLC. All rights reserved.