Interface GroundedGenerationContentOrBuilder (0.51.0)

public interface GroundedGenerationContentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParts(int index)

public abstract GroundedGenerationContent.Part getParts(int index)

Ordered Parts that constitute a single message.

repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;

Parameter
Name Description
index int
Returns
Type Description
GroundedGenerationContent.Part

getPartsCount()

public abstract int getPartsCount()

Ordered Parts that constitute a single message.

repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;

Returns
Type Description
int

getPartsList()

public abstract List<GroundedGenerationContent.Part> getPartsList()

Ordered Parts that constitute a single message.

repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;

Returns
Type Description
List<Part>

getPartsOrBuilder(int index)

public abstract GroundedGenerationContent.PartOrBuilder getPartsOrBuilder(int index)

Ordered Parts that constitute a single message.

repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;

Parameter
Name Description
index int
Returns
Type Description
GroundedGenerationContent.PartOrBuilder

getPartsOrBuilderList()

public abstract List<? extends GroundedGenerationContent.PartOrBuilder> getPartsOrBuilderList()

Ordered Parts that constitute a single message.

repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1.GroundedGenerationContent.PartOrBuilder>

getRole()

public abstract 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
Type Description
String

The role.

getRoleBytes()

public abstract 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
Type Description
ByteString

The bytes for role.