public static final class GenerateGroundedContentRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder> implements GenerateGroundedContentRequestOrBuilder
Top-level message sent by the client for the `GenerateGroundedContent` method.Protobuf type
google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest| Modifier and Type | Method and Description |
|---|---|
GenerateGroundedContentRequest.Builder |
addAllContents(Iterable<? extends GroundedGenerationContent> values)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
addContents(GroundedGenerationContent.Builder builderForValue)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
addContents(GroundedGenerationContent value)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
addContents(int index,
GroundedGenerationContent.Builder builderForValue)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
addContents(int index,
GroundedGenerationContent value)
Content of the current conversation with the model.
|
GroundedGenerationContent.Builder |
addContentsBuilder()
Content of the current conversation with the model.
|
GroundedGenerationContent.Builder |
addContentsBuilder(int index)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateGroundedContentRequest |
build() |
GenerateGroundedContentRequest |
buildPartial() |
GenerateGroundedContentRequest.Builder |
clear() |
GenerateGroundedContentRequest.Builder |
clearContents()
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GenerateGroundedContentRequest.Builder |
clearGenerationSpec()
Content generation specification.
|
GenerateGroundedContentRequest.Builder |
clearGroundingSpec()
Grounding specification.
|
GenerateGroundedContentRequest.Builder |
clearLocation()
Required.
|
GenerateGroundedContentRequest.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GenerateGroundedContentRequest.Builder |
clearSystemInstruction()
Content of the system instruction for the current API.
|
GenerateGroundedContentRequest.Builder |
clearUserLabels() |
GenerateGroundedContentRequest.Builder |
clone() |
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
|
GroundedGenerationContent |
getContents(int index)
Content of the current conversation with the model.
|
GroundedGenerationContent.Builder |
getContentsBuilder(int index)
Content of the current conversation with the model.
|
List<GroundedGenerationContent.Builder> |
getContentsBuilderList()
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.
|
GenerateGroundedContentRequest |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GenerateGroundedContentRequest.GenerationSpec |
getGenerationSpec()
Content generation specification.
|
GenerateGroundedContentRequest.GenerationSpec.Builder |
getGenerationSpecBuilder()
Content generation specification.
|
GenerateGroundedContentRequest.GenerationSpecOrBuilder |
getGenerationSpecOrBuilder()
Content generation specification.
|
GenerateGroundedContentRequest.GroundingSpec |
getGroundingSpec()
Grounding specification.
|
GenerateGroundedContentRequest.GroundingSpec.Builder |
getGroundingSpecBuilder()
Grounding specification.
|
GenerateGroundedContentRequest.GroundingSpecOrBuilder |
getGroundingSpecOrBuilder()
Grounding specification.
|
String |
getLocation()
Required.
|
com.google.protobuf.ByteString |
getLocationBytes()
Required.
|
Map<String,String> |
getMutableUserLabels()
Deprecated.
|
GroundedGenerationContent |
getSystemInstruction()
Content of the system instruction for the current API.
|
GroundedGenerationContent.Builder |
getSystemInstructionBuilder()
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.
|
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) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
GenerateGroundedContentRequest.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GenerateGroundedContentRequest.Builder |
mergeFrom(GenerateGroundedContentRequest other) |
GenerateGroundedContentRequest.Builder |
mergeFrom(com.google.protobuf.Message other) |
GenerateGroundedContentRequest.Builder |
mergeGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value)
Content generation specification.
|
GenerateGroundedContentRequest.Builder |
mergeGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value)
Grounding specification.
|
GenerateGroundedContentRequest.Builder |
mergeSystemInstruction(GroundedGenerationContent value)
Content of the system instruction for the current API.
|
GenerateGroundedContentRequest.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GenerateGroundedContentRequest.Builder |
putAllUserLabels(Map<String,String> values)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
GenerateGroundedContentRequest.Builder |
putUserLabels(String key,
String value)
The user labels applied to a resource must meet the following requirements:
* Each resource can have multiple labels, up to a maximum of 64
|
GenerateGroundedContentRequest.Builder |
removeContents(int index)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
removeUserLabels(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
|
GenerateGroundedContentRequest.Builder |
setContents(int index,
GroundedGenerationContent.Builder builderForValue)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
setContents(int index,
GroundedGenerationContent value)
Content of the current conversation with the model.
|
GenerateGroundedContentRequest.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GenerateGroundedContentRequest.Builder |
setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.Builder builderForValue)
Content generation specification.
|
GenerateGroundedContentRequest.Builder |
setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value)
Content generation specification.
|
GenerateGroundedContentRequest.Builder |
setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.Builder builderForValue)
Grounding specification.
|
GenerateGroundedContentRequest.Builder |
setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value)
Grounding specification.
|
GenerateGroundedContentRequest.Builder |
setLocation(String value)
Required.
|
GenerateGroundedContentRequest.Builder |
setLocationBytes(com.google.protobuf.ByteString value)
Required.
|
GenerateGroundedContentRequest.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GenerateGroundedContentRequest.Builder |
setSystemInstruction(GroundedGenerationContent.Builder builderForValue)
Content of the system instruction for the current API.
|
GenerateGroundedContentRequest.Builder |
setSystemInstruction(GroundedGenerationContent value)
Content of the system instruction for the current API.
|
GenerateGroundedContentRequest.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GenerateGroundedContentRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GenerateGroundedContentRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder mergeFrom(GenerateGroundedContentRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public GenerateGroundedContentRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GenerateGroundedContentRequest.Builder>IOExceptionpublic 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 GenerateGroundedContentRequest.Builder setLocation(String value)
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The location to set.public GenerateGroundedContentRequest.Builder clearLocation()
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
public GenerateGroundedContentRequest.Builder setLocationBytes(com.google.protobuf.ByteString value)
Required. Location resource.
Format: `projects/{project}/locations/{location}`.
string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
value - The bytes for location to set.public 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 GenerateGroundedContentRequest.Builder setSystemInstruction(GroundedGenerationContent value)
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;
public GenerateGroundedContentRequest.Builder setSystemInstruction(GroundedGenerationContent.Builder builderForValue)
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;
public GenerateGroundedContentRequest.Builder mergeSystemInstruction(GroundedGenerationContent value)
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;
public GenerateGroundedContentRequest.Builder clearSystemInstruction()
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;
public GroundedGenerationContent.Builder getSystemInstructionBuilder()
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;
public 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 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 GenerateGroundedContentRequest.Builder setContents(int index, GroundedGenerationContent value)
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;
public GenerateGroundedContentRequest.Builder setContents(int index, GroundedGenerationContent.Builder builderForValue)
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;
public GenerateGroundedContentRequest.Builder addContents(GroundedGenerationContent value)
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;
public GenerateGroundedContentRequest.Builder addContents(int index, GroundedGenerationContent value)
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;
public GenerateGroundedContentRequest.Builder addContents(GroundedGenerationContent.Builder builderForValue)
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;
public GenerateGroundedContentRequest.Builder addContents(int index, GroundedGenerationContent.Builder builderForValue)
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;
public GenerateGroundedContentRequest.Builder addAllContents(Iterable<? extends GroundedGenerationContent> values)
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;
public GenerateGroundedContentRequest.Builder clearContents()
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;
public GenerateGroundedContentRequest.Builder removeContents(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;
public GroundedGenerationContent.Builder getContentsBuilder(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;
public 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 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 GroundedGenerationContent.Builder addContentsBuilder()
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;
public GroundedGenerationContent.Builder addContentsBuilder(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;
public List<GroundedGenerationContent.Builder> getContentsBuilderList()
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;
public 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.Builder setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value)
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
public GenerateGroundedContentRequest.Builder setGenerationSpec(GenerateGroundedContentRequest.GenerationSpec.Builder builderForValue)
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
public GenerateGroundedContentRequest.Builder mergeGenerationSpec(GenerateGroundedContentRequest.GenerationSpec value)
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
public GenerateGroundedContentRequest.Builder clearGenerationSpec()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
public GenerateGroundedContentRequest.GenerationSpec.Builder getGenerationSpecBuilder()
Content generation specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3;
public 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.Builder setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value)
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
public GenerateGroundedContentRequest.Builder setGroundingSpec(GenerateGroundedContentRequest.GroundingSpec.Builder builderForValue)
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
public GenerateGroundedContentRequest.Builder mergeGroundingSpec(GenerateGroundedContentRequest.GroundingSpec value)
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
public GenerateGroundedContentRequest.Builder clearGroundingSpec()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
public GenerateGroundedContentRequest.GroundingSpec.Builder getGroundingSpecBuilder()
Grounding specification.
.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4;
public 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 GenerateGroundedContentRequest.Builder clearUserLabels()
public GenerateGroundedContentRequest.Builder removeUserLabels(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;@Deprecated public Map<String,String> getMutableUserLabels()
public GenerateGroundedContentRequest.Builder putUserLabels(String key, String value)
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;public GenerateGroundedContentRequest.Builder putAllUserLabels(Map<String,String> values)
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;public final GenerateGroundedContentRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>public final GenerateGroundedContentRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GenerateGroundedContentRequest.Builder>Copyright © 2025 Google LLC. All rights reserved.