public final class GenerateGroundedContentRequest extends com.google.protobuf.GeneratedMessageV3 implements GenerateGroundedContentRequestOrBuilder
Top-level message sent by the client for the `GenerateGroundedContent` method.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest| Modifier and Type | Class and Description |
|---|---|
static class |
GenerateGroundedContentRequest.Builder
Top-level message sent by the client for the `GenerateGroundedContent`
method.
|
static class |
GenerateGroundedContentRequest.DynamicRetrievalConfiguration
Describes the options to customize dynamic retrieval.
|
static interface |
GenerateGroundedContentRequest.DynamicRetrievalConfigurationOrBuilder |
static class |
GenerateGroundedContentRequest.GenerationSpec
Content generation specification.
|
static interface |
GenerateGroundedContentRequest.GenerationSpecOrBuilder |
static class |
GenerateGroundedContentRequest.GroundingSource
Grounding source.
|
static interface |
GenerateGroundedContentRequest.GroundingSourceOrBuilder |
static class |
GenerateGroundedContentRequest.GroundingSpec
Grounding specification.
|
static interface |
GenerateGroundedContentRequest.GroundingSpecOrBuilder |
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 |
CONTENTS_FIELD_NUMBER |
static int |
GENERATION_SPEC_FIELD_NUMBER |
static int |
GROUNDING_SPEC_FIELD_NUMBER |
static int |
LOCATION_FIELD_NUMBER |
static int |
SYSTEM_INSTRUCTION_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) |
GroundedGenerationContent |
getContents(int index)
Content of the current conversation with the model.
|
int |
getContentsCount()
Content of the current conversation with the model.
|
List<GroundedGenerationContent> |
getContentsList()
Content of the current conversation with the model.
|
GroundedGenerationContentOrBuilder |
getContentsOrBuilder(int index)
Content of the current conversation with the model.
|
List<? extends GroundedGenerationContentOrBuilder> |
getContentsOrBuilderList()
Content of the current conversation with the model.
|
static GenerateGroundedContentRequest |
getDefaultInstance() |
GenerateGroundedContentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GenerateGroundedContentRequest.GenerationSpec |
getGenerationSpec()
Content generation specification.
|
GenerateGroundedContentRequest.GenerationSpecOrBuilder |
getGenerationSpecOrBuilder()
Content generation specification.
|
GenerateGroundedContentRequest.GroundingSpec |
getGroundingSpec()
Grounding specification.
|
GenerateGroundedContentRequest.GroundingSpecOrBuilder |
getGroundingSpecOrBuilder()
Grounding specification.
|
String |
getLocation()
Required.
|
com.google.protobuf.ByteString |
getLocationBytes()
Required.
|
com.google.protobuf.Parser<GenerateGroundedContentRequest> |
getParserForType() |
int |
getSerializedSize() |
GroundedGenerationContent |
getSystemInstruction()
Content of the system instruction for the current API.
|
GroundedGenerationContentOrBuilder |
getSystemInstructionOrBuilder()
Content of the system instruction for the current API.
|
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 |
hasGenerationSpec()
Content generation specification.
|
boolean |
hasGroundingSpec()
Grounding specification.
|
int |
hashCode() |
boolean |
hasSystemInstruction()
Content of the system instruction for the current API.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static GenerateGroundedContentRequest.Builder |
newBuilder() |
static GenerateGroundedContentRequest.Builder |
newBuilder(GenerateGroundedContentRequest prototype) |
GenerateGroundedContentRequest.Builder |
newBuilderForType() |
protected GenerateGroundedContentRequest.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static GenerateGroundedContentRequest |
parseDelimitedFrom(InputStream input) |
static GenerateGroundedContentRequest |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateGroundedContentRequest |
parseFrom(byte[] data) |
static GenerateGroundedContentRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateGroundedContentRequest |
parseFrom(ByteBuffer data) |
static GenerateGroundedContentRequest |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateGroundedContentRequest |
parseFrom(com.google.protobuf.ByteString data) |
static GenerateGroundedContentRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateGroundedContentRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static GenerateGroundedContentRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static GenerateGroundedContentRequest |
parseFrom(InputStream input) |
static GenerateGroundedContentRequest |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<GenerateGroundedContentRequest> |
parser() |
GenerateGroundedContentRequest.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 LOCATION_FIELD_NUMBER
public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER
public static final int GENERATION_SPEC_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 getLocation()
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getLocation in interface GenerateGroundedContentRequestOrBuilderpublic com.google.protobuf.ByteString getLocationBytes()
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
getLocationBytes in interface GenerateGroundedContentRequestOrBuilderpublic boolean hasSystemInstruction()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
hasSystemInstruction in interface GenerateGroundedContentRequestOrBuilderpublic GroundedGenerationContent getSystemInstruction()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
getSystemInstruction in interface GenerateGroundedContentRequestOrBuilderpublic GroundedGenerationContentOrBuilder getSystemInstructionOrBuilder()
Content of the system instruction for the current API. These instructions will take priority over any other prompt instructions if the selected model is supporting them.
.google.cloud.discoveryengine.v1beta.GroundedGenerationContent system_instruction = 5;
getSystemInstructionOrBuilder in interface GenerateGroundedContentRequestOrBuilderpublic List<GroundedGenerationContent> getContentsList()
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
getContentsList in interface GenerateGroundedContentRequestOrBuilderpublic List<? extends GroundedGenerationContentOrBuilder> getContentsOrBuilderList()
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
getContentsOrBuilderList in interface GenerateGroundedContentRequestOrBuilderpublic int getContentsCount()
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
getContentsCount in interface GenerateGroundedContentRequestOrBuilderpublic GroundedGenerationContent getContents(int index)
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
getContents in interface GenerateGroundedContentRequestOrBuilderpublic GroundedGenerationContentOrBuilder getContentsOrBuilder(int index)
Content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent contents = 2;
getContentsOrBuilder in interface GenerateGroundedContentRequestOrBuilderpublic boolean hasGenerationSpec()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
hasGenerationSpec in interface GenerateGroundedContentRequestOrBuilderpublic GenerateGroundedContentRequest.GenerationSpec getGenerationSpec()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
getGenerationSpec in interface GenerateGroundedContentRequestOrBuilderpublic GenerateGroundedContentRequest.GenerationSpecOrBuilder getGenerationSpecOrBuilder()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
getGenerationSpecOrBuilder in interface GenerateGroundedContentRequestOrBuilderpublic boolean hasGroundingSpec()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
hasGroundingSpec in interface GenerateGroundedContentRequestOrBuilderpublic GenerateGroundedContentRequest.GroundingSpec getGroundingSpec()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
getGroundingSpec in interface GenerateGroundedContentRequestOrBuilderpublic GenerateGroundedContentRequest.GroundingSpecOrBuilder getGroundingSpecOrBuilder()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
getGroundingSpecOrBuilder in interface GenerateGroundedContentRequestOrBuilderpublic int getUserLabelsCount()
GenerateGroundedContentRequestOrBuilderThe 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 = 6;getUserLabelsCount in interface GenerateGroundedContentRequestOrBuilderpublic 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 = 6;containsUserLabels in interface GenerateGroundedContentRequestOrBuilder@Deprecated public Map<String,String> getUserLabels()
getUserLabelsMap() instead.getUserLabels in interface GenerateGroundedContentRequestOrBuilderpublic 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 = 6;getUserLabelsMap in interface GenerateGroundedContentRequestOrBuilderpublic 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 = 6;getUserLabelsOrDefault in interface GenerateGroundedContentRequestOrBuilderpublic 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 = 6;getUserLabelsOrThrow in interface GenerateGroundedContentRequestOrBuilderpublic 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 GenerateGroundedContentRequest parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static GenerateGroundedContentRequest parseFrom(InputStream input) throws IOException
IOExceptionpublic static GenerateGroundedContentRequest parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerateGroundedContentRequest parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static GenerateGroundedContentRequest parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static GenerateGroundedContentRequest parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static GenerateGroundedContentRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic GenerateGroundedContentRequest.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static GenerateGroundedContentRequest.Builder newBuilder()
public static GenerateGroundedContentRequest.Builder newBuilder(GenerateGroundedContentRequest prototype)
public GenerateGroundedContentRequest.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected GenerateGroundedContentRequest.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static GenerateGroundedContentRequest getDefaultInstance()
public static com.google.protobuf.Parser<GenerateGroundedContentRequest> parser()
public com.google.protobuf.Parser<GenerateGroundedContentRequest> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public GenerateGroundedContentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.