Interface Conversation.ContextReference.ContextContentOrBuilder (4.87.0)

public static interface Conversation.ContextReference.ContextContentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswerRecord()

public abstract String getAnswerRecord()

If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

string answer_record = 4;

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public abstract ByteString getAnswerRecordBytes()

If the context content was generated from a tool call, specify the answer record associated with the tool call. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

string answer_record = 4;

Returns
Type Description
ByteString

The bytes for answerRecord.

getContent()

public abstract String getContent()

Required. The information ingested in a single request.

string content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

Required. The information ingested in a single request.

string content = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for content.

getContentFormat()

public abstract Conversation.ContextReference.ContextContent.ContentFormat getContentFormat()

Required. The format of the ingested string.

.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Conversation.ContextReference.ContextContent.ContentFormat

The contentFormat.

getContentFormatValue()

public abstract int getContentFormatValue()

Required. The format of the ingested string.

.google.cloud.dialogflow.v2.Conversation.ContextReference.ContextContent.ContentFormat content_format = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for contentFormat.

getIngestionTime()

public abstract Timestamp getIngestionTime()

Output only. The time when this information was incorporated into the relevant context reference.

.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The ingestionTime.

getIngestionTimeOrBuilder()

public abstract TimestampOrBuilder getIngestionTimeOrBuilder()

Output only. The time when this information was incorporated into the relevant context reference.

.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasIngestionTime()

public abstract boolean hasIngestionTime()

Output only. The time when this information was incorporated into the relevant context reference.

.google.protobuf.Timestamp ingestion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the ingestionTime field is set.