Interface ContentOrBuilder (3.49.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.v1beta1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
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.v1beta1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
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.v1beta1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
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.v1beta1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
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.v1beta1.Part parts = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.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
Type Description
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
Type Description
ByteString

The bytes for role.