Class ConversationTurn.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder
- All Implemented Interfaces:
ConversationTurnOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConversationTurn
public static final class ConversationTurn.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
implements ConversationTurnOrBuilder
Represents a single turn/invocation in the conversation.Protobuf type
google.cloud.aiplatform.v1beta1.ConversationTurn-
Method Summary
Modifier and TypeMethodDescriptionaddAllEvents(Iterable<? extends AgentEvent> values) Optional.addEvents(int index, AgentEvent value) Optional.addEvents(int index, AgentEvent.Builder builderForValue) Optional.addEvents(AgentEvent value) Optional.addEvents(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.List<? extends AgentEventOrBuilder>Optional.Optional.com.google.protobuf.ByteStringOptional.intRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ConversationTurn other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEvents(int index) Optional.setEvents(int index, AgentEvent value) Optional.setEvents(int index, 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<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<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<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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationTurn.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
-
mergeFrom
public 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<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 interfaceConversationTurnOrBuilder- 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 interfaceConversationTurnOrBuilder- 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 interfaceConversationTurnOrBuilder- 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 interfaceConversationTurnOrBuilder- 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
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.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsListin interfaceConversationTurnOrBuilder
-
getEventsCount
public int getEventsCount()Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsCountin interfaceConversationTurnOrBuilder
-
getEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsin interfaceConversationTurnOrBuilder
-
setEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addAllEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
removeEvents
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEventsBuilder
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEventsOrBuilder
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsOrBuilderin interfaceConversationTurnOrBuilder
-
getEventsOrBuilderList
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventsOrBuilderListin interfaceConversationTurnOrBuilder
-
addEventsBuilder
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
addEventsBuilder
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getEventsBuilderList
Optional. The list of events that occurred during this turn.
repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
-