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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
    • clear

      public ConversationTurn.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConversationTurn.Builder>
    • getDefaultInstanceForType

      public ConversationTurn getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConversationTurn build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConversationTurn buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ConversationTurn.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConversationTurn.Builder>
    • mergeFrom

      public ConversationTurn.Builder mergeFrom(ConversationTurn other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasTurnIndex in interface 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:
      getTurnIndex in interface ConversationTurnOrBuilder
      Returns:
      The turnIndex.
    • setTurnIndex

      public 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];
      Parameters:
      value - The turnIndex to set.
      Returns:
      This builder for chaining.
    • clearTurnIndex

      public 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:
      This builder for chaining.
    • 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];
      Specified by:
      getTurnId in interface 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:
      getTurnIdBytes in interface ConversationTurnOrBuilder
      Returns:
      The bytes for turnId.
    • setTurnId

      public 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];
      Parameters:
      value - The turnId to set.
      Returns:
      This builder for chaining.
    • clearTurnId

      public 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:
      This builder for chaining.
    • setTurnIdBytes

      public 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

      public List<AgentEvent> 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:
      getEventsList in interface ConversationTurnOrBuilder
    • 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:
      getEventsCount in interface ConversationTurnOrBuilder
    • getEvents

      public AgentEvent getEvents(int index)
       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:
      getEvents in interface ConversationTurnOrBuilder
    • setEvents

      public ConversationTurn.Builder setEvents(int index, AgentEvent value)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setEvents

      public ConversationTurn.Builder setEvents(int index, AgentEvent.Builder builderForValue)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addEvents

      public ConversationTurn.Builder addEvents(AgentEvent value)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addEvents

      public ConversationTurn.Builder addEvents(int index, AgentEvent value)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addEvents

      public ConversationTurn.Builder addEvents(AgentEvent.Builder builderForValue)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addEvents

      public ConversationTurn.Builder addEvents(int index, AgentEvent.Builder builderForValue)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllEvents

      public ConversationTurn.Builder addAllEvents(Iterable<? extends AgentEvent> values)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearEvents

      public ConversationTurn.Builder 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

      public ConversationTurn.Builder removeEvents(int index)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEventsBuilder

      public AgentEvent.Builder getEventsBuilder(int index)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEventsOrBuilder

      public AgentEventOrBuilder getEventsOrBuilder(int index)
       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:
      getEventsOrBuilder in interface ConversationTurnOrBuilder
    • getEventsOrBuilderList

      public List<? extends AgentEventOrBuilder> 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:
      getEventsOrBuilderList in interface ConversationTurnOrBuilder
    • addEventsBuilder

      public AgentEvent.Builder 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

      public AgentEvent.Builder addEventsBuilder(int index)
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEventsBuilderList

      public List<AgentEvent.Builder> getEventsBuilderList()
       Optional. The list of events that occurred during this turn.
       
      repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL];