public static final class GroundedGenerationContent.Builder extends com.google.protobuf.GeneratedMessage.Builder<GroundedGenerationContent.Builder> implements GroundedGenerationContentOrBuilder
Base structured datatype containing multi-part content of a message.Protobuf type
google.cloud.discoveryengine.v1.GroundedGenerationContent| Modifier and Type | Method and Description |
|---|---|
GroundedGenerationContent.Builder |
addAllParts(Iterable<? extends GroundedGenerationContent.Part> values)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
addParts(GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
addParts(GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
addParts(int index,
GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
addParts(int index,
GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Part.Builder |
addPartsBuilder()
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Part.Builder |
addPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent |
build() |
GroundedGenerationContent |
buildPartial() |
GroundedGenerationContent.Builder |
clear() |
GroundedGenerationContent.Builder |
clearParts()
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
clearRole()
Producer of the content.
|
GroundedGenerationContent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GroundedGenerationContent.Part |
getParts(int index)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Part.Builder |
getPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
|
List<GroundedGenerationContent.Part.Builder> |
getPartsBuilderList()
Ordered `Parts` that constitute a single message.
|
int |
getPartsCount()
Ordered `Parts` that constitute a single message.
|
List<GroundedGenerationContent.Part> |
getPartsList()
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.PartOrBuilder |
getPartsOrBuilder(int index)
Ordered `Parts` that constitute a single message.
|
List<? extends GroundedGenerationContent.PartOrBuilder> |
getPartsOrBuilderList()
Ordered `Parts` that constitute a single message.
|
String |
getRole()
Producer of the content.
|
com.google.protobuf.ByteString |
getRoleBytes()
Producer of the content.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
GroundedGenerationContent.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
GroundedGenerationContent.Builder |
mergeFrom(GroundedGenerationContent other) |
GroundedGenerationContent.Builder |
mergeFrom(com.google.protobuf.Message other) |
GroundedGenerationContent.Builder |
removeParts(int index)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
setParts(int index,
GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
setParts(int index,
GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
setRole(String value)
Producer of the content.
|
GroundedGenerationContent.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Producer of the content.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<GroundedGenerationContent.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.GeneratedMessage.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic GroundedGenerationContent build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic GroundedGenerationContent buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic GroundedGenerationContent.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.Builder mergeFrom(GroundedGenerationContent other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.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<GroundedGenerationContent.Builder>IOExceptionpublic String getRole()
Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
string role = 1;getRole in interface GroundedGenerationContentOrBuilderpublic com.google.protobuf.ByteString getRoleBytes()
Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
string role = 1;getRoleBytes in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Builder setRole(String value)
Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
string role = 1;value - The role to set.public GroundedGenerationContent.Builder clearRole()
Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
string role = 1;public GroundedGenerationContent.Builder setRoleBytes(com.google.protobuf.ByteString value)
Producer of the content. Must be either `user` or `model`. Intended to be used for multi-turn conversations. Otherwise, it can be left unset.
string role = 1;value - The bytes for role to set.public List<GroundedGenerationContent.Part> getPartsList()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
getPartsList in interface GroundedGenerationContentOrBuilderpublic int getPartsCount()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
getPartsCount in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Part getParts(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
getParts in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Builder setParts(int index, GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder setParts(int index, GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(int index, GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(int index, GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addAllParts(Iterable<? extends GroundedGenerationContent.Part> values)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder clearParts()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder removeParts(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Part.Builder getPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.PartOrBuilder getPartsOrBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
getPartsOrBuilder in interface GroundedGenerationContentOrBuilderpublic List<? extends GroundedGenerationContent.PartOrBuilder> getPartsOrBuilderList()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
getPartsOrBuilderList in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Part.Builder addPartsBuilder()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Part.Builder addPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
public List<GroundedGenerationContent.Part.Builder> getPartsBuilderList()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;
Copyright © 2026 Google LLC. All rights reserved.