public final class CheckGroundingRequest extends com.google.protobuf.GeneratedMessageV3 implements CheckGroundingRequestOrBuilder
Request message for [GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding] method.Protobuf type
google.cloud.discoveryengine.v1alpha.CheckGroundingRequest| Modifier and Type | Class and Description |
|---|---|
static class |
CheckGroundingRequest.Builder
Request message for
[GroundedGenerationService.CheckGrounding][google.cloud.discoveryengine.v1alpha.GroundedGenerationService.CheckGrounding]
method.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANSWER_CANDIDATE_FIELD_NUMBER |
static int |
FACTS_FIELD_NUMBER |
static int |
GROUNDING_CONFIG_FIELD_NUMBER |
static int |
GROUNDING_SPEC_FIELD_NUMBER |
static int |
USER_LABELS_FIELD_NUMBER |
| 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
|
boolean |
equals(Object obj) |
String |
getAnswerCandidate()
Answer candidate to check.
|
com.google.protobuf.ByteString |
getAnswerCandidateBytes()
Answer candidate to check.
|
static CheckGroundingRequest |
getDefaultInstance() |
CheckGroundingRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<CheckGroundingRequest> |
getParserForType() |
int |
getSerializedSize() |
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.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static CheckGroundingRequest.Builder |
newBuilder() |
static CheckGroundingRequest.Builder |
newBuilder(CheckGroundingRequest prototype) |
CheckGroundingRequest.Builder |
newBuilderForType() |
protected CheckGroundingRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CheckGroundingRequest |
parseDelimitedFrom(InputStream input) |
static CheckGroundingRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingRequest |
parseFrom(byte[] data) |
static CheckGroundingRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingRequest |
parseFrom(ByteBuffer data) |
static CheckGroundingRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingRequest |
parseFrom(com.google.protobuf.ByteString data) |
static CheckGroundingRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CheckGroundingRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CheckGroundingRequest |
parseFrom(InputStream input) |
static CheckGroundingRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CheckGroundingRequest> |
parser() |
CheckGroundingRequest.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int GROUNDING_CONFIG_FIELD_NUMBER
public static final int ANSWER_CANDIDATE_FIELD_NUMBER
public static final int FACTS_FIELD_NUMBER
public static final int GROUNDING_SPEC_FIELD_NUMBER
public static final int USER_LABELS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String 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) = { ... }
getGroundingConfig in interface CheckGroundingRequestOrBuilderpublic 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) = { ... }
getGroundingConfigBytes in interface CheckGroundingRequestOrBuilderpublic String getAnswerCandidate()
Answer candidate to check. Can have a maximum length of 1024 characters.
string answer_candidate = 2;getAnswerCandidate in interface CheckGroundingRequestOrBuilderpublic com.google.protobuf.ByteString getAnswerCandidateBytes()
Answer candidate to check. Can have a maximum length of 1024 characters.
string answer_candidate = 2;getAnswerCandidateBytes in interface CheckGroundingRequestOrBuilderpublic List<GroundingFact> getFactsList()
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;getFactsList in interface CheckGroundingRequestOrBuilderpublic 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;getFactsOrBuilderList in interface CheckGroundingRequestOrBuilderpublic int getFactsCount()
List of facts for the grounding check. We support up to 200 facts.
repeated .google.cloud.discoveryengine.v1alpha.GroundingFact facts = 3;getFactsCount in interface CheckGroundingRequestOrBuilderpublic 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;getFacts in interface CheckGroundingRequestOrBuilderpublic 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;getFactsOrBuilder in interface CheckGroundingRequestOrBuilderpublic boolean hasGroundingSpec()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;hasGroundingSpec in interface CheckGroundingRequestOrBuilderpublic CheckGroundingSpec getGroundingSpec()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;getGroundingSpec in interface CheckGroundingRequestOrBuilderpublic CheckGroundingSpecOrBuilder getGroundingSpecOrBuilder()
Configuration of the grounding check.
.google.cloud.discoveryengine.v1alpha.CheckGroundingSpec grounding_spec = 4;getGroundingSpecOrBuilder in interface CheckGroundingRequestOrBuilderpublic int getUserLabelsCount()
CheckGroundingRequestOrBuilderThe 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;getUserLabelsCount in interface CheckGroundingRequestOrBuilderpublic 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;containsUserLabels in interface CheckGroundingRequestOrBuilder@Deprecated public Map<String,String> getUserLabels()
getUserLabelsMap() instead.getUserLabels in interface CheckGroundingRequestOrBuilderpublic 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;getUserLabelsMap in interface CheckGroundingRequestOrBuilderpublic 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;getUserLabelsOrDefault in interface CheckGroundingRequestOrBuilderpublic 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;getUserLabelsOrThrow in interface CheckGroundingRequestOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CheckGroundingRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CheckGroundingRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CheckGroundingRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CheckGroundingRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CheckGroundingRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CheckGroundingRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CheckGroundingRequest.Builder newBuilder()
public static CheckGroundingRequest.Builder newBuilder(CheckGroundingRequest prototype)
public CheckGroundingRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CheckGroundingRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CheckGroundingRequest getDefaultInstance()
public static com.google.protobuf.Parser<CheckGroundingRequest> parser()
public com.google.protobuf.Parser<CheckGroundingRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CheckGroundingRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.