Interface ContentOrBuilder (3.38.0)

public interface ContentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getParts(int index)

public abstract Part getParts(int index)

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

repeated .google.cloud.aiplatform.v1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
Part

getPartsCount()

public abstract int getPartsCount()

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

repeated .google.cloud.aiplatform.v1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getPartsList()

public abstract List<Part> getPartsList()

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

repeated .google.cloud.aiplatform.v1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Part>

getPartsOrBuilder(int index)

public abstract PartOrBuilder getPartsOrBuilder(int index)

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

repeated .google.cloud.aiplatform.v1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
PartOrBuilder

getPartsOrBuilderList()

public abstract List<? extends PartOrBuilder> getPartsOrBuilderList()

Required. Ordered Parts that constitute a single message. Parts may have different IANA MIME types.

repeated .google.cloud.aiplatform.v1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1.PartOrBuilder>

getRole()

public abstract String getRole()

Optional. The producer of the content. Must be either 'user' or 'model'.

Useful to set for multi-turn conversations, otherwise can be left blank or unset.

string role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The role.

getRoleBytes()

public abstract ByteString getRoleBytes()

Optional. The producer of the content. Must be either 'user' or 'model'.

Useful to set for multi-turn conversations, otherwise can be left blank or unset.

string role = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for role.