public static final class EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder extends GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder> implements EvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilderRepresents a single turn/invocation in the conversation.
Protobuf type
google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EvaluationInstance.DeprecatedAgentData.ConversationTurn.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllEvents(Iterable<? extends EvaluationInstance.DeprecatedAgentData.AgentEvent> values)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder addAllEvents(Iterable<? extends EvaluationInstance.DeprecatedAgentData.AgentEvent> values)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
addEvents(EvaluationInstance.DeprecatedAgentData.AgentEvent value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder addEvents(EvaluationInstance.DeprecatedAgentData.AgentEvent value)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EvaluationInstance.DeprecatedAgentData.AgentEvent |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
addEvents(EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder addEvents(EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EvaluationInstance.DeprecatedAgentData.AgentEvent |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
addEventsBuilder()
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addEventsBuilder()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
|
addEventsBuilder(int index)
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder addEventsBuilder(int index)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
|
build()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn build()| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn |
|
buildPartial()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn buildPartial()| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn |
|
clear()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder clear()| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
clearEvents()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder clearEvents()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
clearTurnId()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder clearTurnId()Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
This builder for chaining. |
clearTurnIndex()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder clearTurnIndex()Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public EvaluationInstance.DeprecatedAgentData.ConversationTurn getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEvents(int index)
public EvaluationInstance.DeprecatedAgentData.AgentEvent getEvents(int index)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.AgentEvent |
|
getEventsBuilder(int index)
public EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder getEventsBuilder(int index)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
|
getEventsBuilderList()
public List<EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder> getEventsBuilderList()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getEventsCount()
public int getEventsCount()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getEventsList()
public List<EvaluationInstance.DeprecatedAgentData.AgentEvent> getEventsList()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<AgentEvent> |
|
getEventsOrBuilder(int index)
public EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder getEventsOrBuilder(int index)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder |
|
getEventsOrBuilderList()
public List<? extends EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder> getEventsOrBuilderList()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder> |
|
getTurnId()
public String getTurnId()Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The turnId. |
getTurnIdBytes()
public ByteString getTurnIdBytes()Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for turnId. |
getTurnIndex()
public int getTurnIndex()Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The turnIndex. |
hasTurnIndex()
public boolean hasTurnIndex()Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the turnIndex field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EvaluationInstance.DeprecatedAgentData.ConversationTurn other)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder mergeFrom(EvaluationInstance.DeprecatedAgentData.ConversationTurn other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationInstance.DeprecatedAgentData.ConversationTurn |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
removeEvents(int index)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder removeEvents(int index)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
EvaluationInstance.DeprecatedAgentData.AgentEvent |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue)Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
|
setTurnId(String value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setTurnId(String value)Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe turnId to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
This builder for chaining. |
setTurnIdBytes(ByteString value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setTurnIdBytes(ByteString value)Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for turnId to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
This builder for chaining. |
setTurnIndex(int value)
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setTurnIndex(int value)Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe turnIndex to set. |
| Returns | |
|---|---|
| Type | Description |
EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder |
This builder for chaining. |