Interface GroundedGenerationContentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GroundedGenerationContent,GroundedGenerationContent.Builder
@Generated
public interface GroundedGenerationContentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetParts(int index) Ordered `Parts` that constitute a single message.intOrdered `Parts` that constitute a single message.Ordered `Parts` that constitute a single message.getPartsOrBuilder(int index) Ordered `Parts` that constitute a single message.List<? extends GroundedGenerationContent.PartOrBuilder>Ordered `Parts` that constitute a single message.getRole()Producer of the content.com.google.protobuf.ByteStringProducer of the content.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getRole
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;- Returns:
- The role.
-
getRoleBytes
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;- Returns:
- The bytes for role.
-
getPartsList
List<GroundedGenerationContent.Part> getPartsList()Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2; -
getParts
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2; -
getPartsCount
int getPartsCount()Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2; -
getPartsOrBuilderList
List<? extends GroundedGenerationContent.PartOrBuilder> getPartsOrBuilderList()Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2; -
getPartsOrBuilder
Ordered `Parts` that constitute a single message.
repeated .google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part parts = 2;
-