public static final class GroundedGenerationContent.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder> implements GroundedGenerationContentOrBuilder
Base structured datatype containing multi-part content of a message.Protobuf type
google.cloud.discoveryengine.v1beta.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
GroundedGenerationContent |
build() |
GroundedGenerationContent |
buildPartial() |
GroundedGenerationContent.Builder |
clear() |
GroundedGenerationContent.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
GroundedGenerationContent.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
GroundedGenerationContent.Builder |
clearParts()
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
clearRole()
Producer of the content.
|
GroundedGenerationContent.Builder |
clone() |
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
GroundedGenerationContent.Builder |
removeParts(int index)
Ordered `Parts` that constitute a single message.
|
GroundedGenerationContent.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
GroundedGenerationContent.Builder |
setRole(String value)
Producer of the content.
|
GroundedGenerationContent.Builder |
setRoleBytes(com.google.protobuf.ByteString value)
Producer of the content.
|
GroundedGenerationContent.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.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<GroundedGenerationContent.Builder>public GroundedGenerationContent.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder>public GroundedGenerationContent.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<GroundedGenerationContent.Builder>public GroundedGenerationContent.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<GroundedGenerationContent.Builder>public 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.GeneratedMessageV3.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.v1beta.GroundedGenerationContent.Part parts = 2;
getPartsList in interface GroundedGenerationContentOrBuilderpublic int getPartsCount()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
getPartsCount in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Part getParts(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(int index, GroundedGenerationContent.Part value)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addParts(GroundedGenerationContent.Part.Builder builderForValue)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.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.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder addAllParts(Iterable<? extends GroundedGenerationContent.Part> values)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder clearParts()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Builder removeParts(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Part.Builder getPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.PartOrBuilder getPartsOrBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
getPartsOrBuilder in interface GroundedGenerationContentOrBuilderpublic List<? extends GroundedGenerationContent.PartOrBuilder> getPartsOrBuilderList()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
getPartsOrBuilderList in interface GroundedGenerationContentOrBuilderpublic GroundedGenerationContent.Part.Builder addPartsBuilder()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public GroundedGenerationContent.Part.Builder addPartsBuilder(int index)
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public List<GroundedGenerationContent.Part.Builder> getPartsBuilderList()
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
public final GroundedGenerationContent.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder>public final GroundedGenerationContent.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GroundedGenerationContent.Builder>Copyright © 2025 Google LLC. All rights reserved.