Class EventActions.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
com.google.cloud.aiplatform.v1.EventActions.Builder
All Implemented Interfaces:
EventActionsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
EventActions

public static final class EventActions.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventActions.Builder> implements EventActionsOrBuilder
 Actions are parts of events that are executed by the agent.
 
Protobuf type google.cloud.aiplatform.v1.EventActions
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
    • internalGetFieldAccessorTable

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

      public EventActions.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<EventActions.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<EventActions.Builder>
    • getDefaultInstanceForType

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

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

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

      public EventActions.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<EventActions.Builder>
    • mergeFrom

      public EventActions.Builder mergeFrom(EventActions other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
    • mergeFrom

      public EventActions.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<EventActions.Builder>
      Throws:
      IOException
    • getSkipSummarization

      public boolean getSkipSummarization()
       Optional. If true, it won't call model to summarize function response.
       Only used for function_response event.
       
      bool skip_summarization = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSkipSummarization in interface EventActionsOrBuilder
      Returns:
      The skipSummarization.
    • setSkipSummarization

      public EventActions.Builder setSkipSummarization(boolean value)
       Optional. If true, it won't call model to summarize function response.
       Only used for function_response event.
       
      bool skip_summarization = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The skipSummarization to set.
      Returns:
      This builder for chaining.
    • clearSkipSummarization

      public EventActions.Builder clearSkipSummarization()
       Optional. If true, it won't call model to summarize function response.
       Only used for function_response event.
       
      bool skip_summarization = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasStateDelta

      public boolean hasStateDelta()
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasStateDelta in interface EventActionsOrBuilder
      Returns:
      Whether the stateDelta field is set.
    • getStateDelta

      public com.google.protobuf.Struct getStateDelta()
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateDelta in interface EventActionsOrBuilder
      Returns:
      The stateDelta.
    • setStateDelta

      public EventActions.Builder setStateDelta(com.google.protobuf.Struct value)
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setStateDelta

      public EventActions.Builder setStateDelta(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
    • mergeStateDelta

      public EventActions.Builder mergeStateDelta(com.google.protobuf.Struct value)
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearStateDelta

      public EventActions.Builder clearStateDelta()
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStateDeltaBuilder

      public com.google.protobuf.Struct.Builder getStateDeltaBuilder()
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStateDeltaOrBuilder

      public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder()
       Optional. Indicates that the event is updating the state with the given
       delta.
       
      .google.protobuf.Struct state_delta = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStateDeltaOrBuilder in interface EventActionsOrBuilder
    • getArtifactDeltaCount

      public int getArtifactDeltaCount()
      Description copied from interface: EventActionsOrBuilder
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDeltaCount in interface EventActionsOrBuilder
    • containsArtifactDelta

      public boolean containsArtifactDelta(String key)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsArtifactDelta in interface EventActionsOrBuilder
    • getArtifactDelta

      @Deprecated public Map<String,Integer> getArtifactDelta()
      Deprecated.
      Specified by:
      getArtifactDelta in interface EventActionsOrBuilder
    • getArtifactDeltaMap

      public Map<String,Integer> getArtifactDeltaMap()
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDeltaMap in interface EventActionsOrBuilder
    • getArtifactDeltaOrDefault

      public int getArtifactDeltaOrDefault(String key, int defaultValue)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDeltaOrDefault in interface EventActionsOrBuilder
    • getArtifactDeltaOrThrow

      public int getArtifactDeltaOrThrow(String key)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getArtifactDeltaOrThrow in interface EventActionsOrBuilder
    • clearArtifactDelta

      public EventActions.Builder clearArtifactDelta()
    • removeArtifactDelta

      public EventActions.Builder removeArtifactDelta(String key)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableArtifactDelta

      @Deprecated public Map<String,Integer> getMutableArtifactDelta()
      Deprecated.
      Use alternate mutation accessors instead.
    • putArtifactDelta

      public EventActions.Builder putArtifactDelta(String key, int value)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
    • putAllArtifactDelta

      public EventActions.Builder putAllArtifactDelta(Map<String,Integer> values)
       Optional. Indicates that the event is updating an artifact. key is the
       filename, value is the version.
       
      map<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getEscalate

      public boolean getEscalate()
       Optional. The agent is escalating to a higher level agent.
       
      bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEscalate in interface EventActionsOrBuilder
      Returns:
      The escalate.
    • setEscalate

      public EventActions.Builder setEscalate(boolean value)
       Optional. The agent is escalating to a higher level agent.
       
      bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The escalate to set.
      Returns:
      This builder for chaining.
    • clearEscalate

      public EventActions.Builder clearEscalate()
       Optional. The agent is escalating to a higher level agent.
       
      bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasRequestedAuthConfigs

      public boolean hasRequestedAuthConfigs()
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasRequestedAuthConfigs in interface EventActionsOrBuilder
      Returns:
      Whether the requestedAuthConfigs field is set.
    • getRequestedAuthConfigs

      public com.google.protobuf.Struct getRequestedAuthConfigs()
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestedAuthConfigs in interface EventActionsOrBuilder
      Returns:
      The requestedAuthConfigs.
    • setRequestedAuthConfigs

      public EventActions.Builder setRequestedAuthConfigs(com.google.protobuf.Struct value)
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
    • setRequestedAuthConfigs

      public EventActions.Builder setRequestedAuthConfigs(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
    • mergeRequestedAuthConfigs

      public EventActions.Builder mergeRequestedAuthConfigs(com.google.protobuf.Struct value)
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
    • clearRequestedAuthConfigs

      public EventActions.Builder clearRequestedAuthConfigs()
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getRequestedAuthConfigsBuilder

      public com.google.protobuf.Struct.Builder getRequestedAuthConfigsBuilder()
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
    • getRequestedAuthConfigsOrBuilder

      public com.google.protobuf.StructOrBuilder getRequestedAuthConfigsOrBuilder()
       Optional. Will only be set by a tool response indicating tool request euc.
       Struct key is the function call id since one function call response (from
       model) could correspond to multiple function calls. Struct value is the
       required auth config, which can be another struct.
       
      .google.protobuf.Struct requested_auth_configs = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRequestedAuthConfigsOrBuilder in interface EventActionsOrBuilder
    • getTransferAgent

      public String getTransferAgent()
       Optional. If set, the event transfers to the specified agent.
       
      string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTransferAgent in interface EventActionsOrBuilder
      Returns:
      The transferAgent.
    • getTransferAgentBytes

      public com.google.protobuf.ByteString getTransferAgentBytes()
       Optional. If set, the event transfers to the specified agent.
       
      string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTransferAgentBytes in interface EventActionsOrBuilder
      Returns:
      The bytes for transferAgent.
    • setTransferAgent

      public EventActions.Builder setTransferAgent(String value)
       Optional. If set, the event transfers to the specified agent.
       
      string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The transferAgent to set.
      Returns:
      This builder for chaining.
    • clearTransferAgent

      public EventActions.Builder clearTransferAgent()
       Optional. If set, the event transfers to the specified agent.
       
      string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setTransferAgentBytes

      public EventActions.Builder setTransferAgentBytes(com.google.protobuf.ByteString value)
       Optional. If set, the event transfers to the specified agent.
       
      string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for transferAgent to set.
      Returns:
      This builder for chaining.