Class EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder
- All Implemented Interfaces:
EvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EvaluationInstance.DeprecatedAgentData.ConversationTurn
public static final class EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder
extends com.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
implements EvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
Represents a single turn/invocation in the conversation.Protobuf type
google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends EvaluationInstance.DeprecatedAgentData.AgentEvent> values) Optional.addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value) Optional.addEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue) Optional.Optional.addEvents(EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue) Optional.Optional.addEventsBuilder(int index) Optional.build()clear()Optional.Optional.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEvents(int index) Optional.getEventsBuilder(int index) Optional.Optional.intOptional.Optional.getEventsOrBuilder(int index) Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.intRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEvents(int index) Optional.setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent value) Optional.setEvents(int index, EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder builderForValue) Optional.Optional.setTurnIdBytes(com.google.protobuf.ByteString value) Optional.setTurnIndex(int value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>
-
mergeFrom
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder>- Throws:
IOException
-
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];- Specified by:
hasTurnIndexin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder- Returns:
- Whether the turnIndex field is set.
-
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];- Specified by:
getTurnIndexin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder- Returns:
- The turnIndex.
-
setTurnIndex
Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The turnIndex to set.- Returns:
- This builder for chaining.
-
clearTurnIndex
Required. The 0-based index of the turn in the conversation sequence.
optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getTurnId
Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTurnIdin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder- Returns:
- The turnId.
-
getTurnIdBytes
public com.google.protobuf.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];- Specified by:
getTurnIdBytesin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder- Returns:
- The bytes for turnId.
-
setTurnId
Optional. A unique identifier for the turn. Useful for referencing specific turns across systems.
string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The turnId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setTurnIdBytes
public EvaluationInstance.DeprecatedAgentData.ConversationTurn.Builder setTurnIdBytes(com.google.protobuf.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];- Parameters:
value- The bytes for turnId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getEventsListin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
-
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];- Specified by:
getEventsCountin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
-
getEvents
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];- Specified by:
getEventsin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
-
setEvents
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]; -
setEvents
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]; -
addEvents
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]; -
addEvents
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]; -
addEvents
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]; -
addEvents
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]; -
addAllEvents
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]; -
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]; -
removeEvents
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]; -
getEventsBuilder
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]; -
getEventsOrBuilder
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];- Specified by:
getEventsOrBuilderin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
-
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];- Specified by:
getEventsOrBuilderListin interfaceEvaluationInstance.DeprecatedAgentData.ConversationTurnOrBuilder
-
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]; -
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]; -
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];
-