Class EventActions.Builder (3.64.0)

public static final class EventActions.Builder extends GeneratedMessageV3.Builder.Builder> implements EventActionsOrBuilder

Actions are parts of events that are executed by the agent.

Protobuf type google.cloud.aiplatform.v1beta1.EventActions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public EventActions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventActions.Builder
Overrides

build()

public EventActions build()
Returns
Type Description
EventActions

buildPartial()

public EventActions buildPartial()
Returns
Type Description
EventActions

clear()

public EventActions.Builder clear()
Returns
Type Description
EventActions.Builder
Overrides

clearArtifactDelta()

public EventActions.Builder clearArtifactDelta()
Returns
Type Description
EventActions.Builder

clearEscalate()

public EventActions.Builder clearEscalate()

Optional. The agent is escalating to a higher level agent.

bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EventActions.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public EventActions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
EventActions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public EventActions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
EventActions.Builder
Overrides

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];

Returns
Type Description
EventActions.Builder

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
Type Description
EventActions.Builder

This builder for chaining.

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];

Returns
Type Description
EventActions.Builder

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
Type Description
EventActions.Builder

This builder for chaining.

clearTransferToAgent() (deprecated)

public EventActions.Builder clearTransferToAgent()

Deprecated. google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See google/cloud/aiplatform/v1beta1/session.proto;l=163

Deprecated. If set, the event transfers to the specified agent.

bool transfer_to_agent = 5 [deprecated = true];

Returns
Type Description
EventActions.Builder

This builder for chaining.

clone()

public EventActions.Builder clone()
Returns
Type Description
EventActions.Builder
Overrides

containsArtifactDelta(String key)

public boolean containsArtifactDelta(String key)

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getArtifactDelta() (deprecated)

public Map,Integer> getArtifactDelta()
Returns
Type Description
Map<String,Integer>

getArtifactDeltaCount()

public int getArtifactDeltaCount()

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getArtifactDeltaMap()

public Map,Integer> getArtifactDeltaMap()

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,Integer>

getArtifactDeltaOrDefault(String key, int defaultValue)

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 artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue int
Returns
Type Description
int

getArtifactDeltaOrThrow(String key)

public int getArtifactDeltaOrThrow(String key)

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
int

getDefaultInstanceForType()

public EventActions getDefaultInstanceForType()
Returns
Type Description
EventActions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEscalate()

public boolean getEscalate()

Optional. The agent is escalating to a higher level agent.

bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The escalate.

getMutableArtifactDelta() (deprecated)

public Map,Integer> getMutableArtifactDelta()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,Integer>

getRequestedAuthConfigs()

public 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];

Returns
Type Description
Struct

The requestedAuthConfigs.

getRequestedAuthConfigsBuilder()

public 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];

Returns
Type Description
Builder

getRequestedAuthConfigsOrBuilder()

public 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];

Returns
Type Description
StructOrBuilder

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];

Returns
Type Description
boolean

The skipSummarization.

getStateDelta()

public 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];

Returns
Type Description
Struct

The stateDelta.

getStateDeltaBuilder()

public 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];

Returns
Type Description
Builder

getStateDeltaOrBuilder()

public 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];

Returns
Type Description
StructOrBuilder

getTransferAgent()

public String getTransferAgent()

Optional. If set, the event transfers to the specified agent.

string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The transferAgent.

getTransferAgentBytes()

public ByteString getTransferAgentBytes()

Optional. If set, the event transfers to the specified agent.

string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for transferAgent.

getTransferToAgent() (deprecated)

public boolean getTransferToAgent()

Deprecated. google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See google/cloud/aiplatform/v1beta1/session.proto;l=163

Deprecated. If set, the event transfers to the specified agent.

bool transfer_to_agent = 5 [deprecated = true];

Returns
Type Description
boolean

The transferToAgent.

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];

Returns
Type Description
boolean

Whether the requestedAuthConfigs field is set.

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];

Returns
Type Description
boolean

Whether the stateDelta field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EventActions other)

public EventActions.Builder mergeFrom(EventActions other)
Parameter
Name Description
other EventActions
Returns
Type Description
EventActions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EventActions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EventActions.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EventActions.Builder
Overrides

mergeRequestedAuthConfigs(Struct value)

public EventActions.Builder mergeRequestedAuthConfigs(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];

Parameter
Name Description
value Struct
Returns
Type Description
EventActions.Builder

mergeStateDelta(Struct value)

public EventActions.Builder mergeStateDelta(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];

Parameter
Name Description
value Struct
Returns
Type Description
EventActions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final EventActions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventActions.Builder
Overrides

putAllArtifactDelta(Map values)

public EventActions.Builder putAllArtifactDelta(Map,Integer> values)

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,Integer>
Returns
Type Description
EventActions.Builder

putArtifactDelta(String key, int value)

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 artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value int
Returns
Type Description
EventActions.Builder

removeArtifactDelta(String key)

public EventActions.Builder removeArtifactDelta(String key)

Optional. Indicates that the event is updating an artifact. key is the filename, value is the version.

map artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
EventActions.Builder

setEscalate(boolean value)

public EventActions.Builder setEscalate(boolean value)

Optional. The agent is escalating to a higher level agent.

bool escalate = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The escalate to set.

Returns
Type Description
EventActions.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public EventActions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
EventActions.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public EventActions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
EventActions.Builder
Overrides

setRequestedAuthConfigs(Struct value)

public EventActions.Builder setRequestedAuthConfigs(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];

Parameter
Name Description
value Struct
Returns
Type Description
EventActions.Builder

setRequestedAuthConfigs(Struct.Builder builderForValue)

public EventActions.Builder setRequestedAuthConfigs(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EventActions.Builder

setSkipSummarization(boolean value)

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];

Parameter
Name Description
value boolean

The skipSummarization to set.

Returns
Type Description
EventActions.Builder

This builder for chaining.

setStateDelta(Struct value)

public EventActions.Builder setStateDelta(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];

Parameter
Name Description
value Struct
Returns
Type Description
EventActions.Builder

setStateDelta(Struct.Builder builderForValue)

public EventActions.Builder setStateDelta(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];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EventActions.Builder

setTransferAgent(String value)

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];

Parameter
Name Description
value String

The transferAgent to set.

Returns
Type Description
EventActions.Builder

This builder for chaining.

setTransferAgentBytes(ByteString value)

public EventActions.Builder setTransferAgentBytes(ByteString value)

Optional. If set, the event transfers to the specified agent.

string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for transferAgent to set.

Returns
Type Description
EventActions.Builder

This builder for chaining.

setTransferToAgent(boolean value) (deprecated)

public EventActions.Builder setTransferToAgent(boolean value)

Deprecated. google.cloud.aiplatform.v1beta1.EventActions.transfer_to_agent is deprecated. See google/cloud/aiplatform/v1beta1/session.proto;l=163

Deprecated. If set, the event transfers to the specified agent.

bool transfer_to_agent = 5 [deprecated = true];

Parameter
Name Description
value boolean

The transferToAgent to set.

Returns
Type Description
EventActions.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final EventActions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
EventActions.Builder
Overrides