Class EventActions (3.64.0)

public final class EventActions extends GeneratedMessageV3 implements EventActionsOrBuilder

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

Protobuf type google.cloud.aiplatform.v1beta1.EventActions

Static Fields

ARTIFACT_DELTA_FIELD_NUMBER

public static final int ARTIFACT_DELTA_FIELD_NUMBER
Field Value
Type Description
int

ESCALATE_FIELD_NUMBER

public static final int ESCALATE_FIELD_NUMBER
Field Value
Type Description
int

REQUESTED_AUTH_CONFIGS_FIELD_NUMBER

public static final int REQUESTED_AUTH_CONFIGS_FIELD_NUMBER
Field Value
Type Description
int

SKIP_SUMMARIZATION_FIELD_NUMBER

public static final int SKIP_SUMMARIZATION_FIELD_NUMBER
Field Value
Type Description
int

STATE_DELTA_FIELD_NUMBER

public static final int STATE_DELTA_FIELD_NUMBER
Field Value
Type Description
int

TRANSFER_AGENT_FIELD_NUMBER

public static final int TRANSFER_AGENT_FIELD_NUMBER
Field Value
Type Description
int

TRANSFER_TO_AGENT_FIELD_NUMBER

public static final int TRANSFER_TO_AGENT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventActions getDefaultInstance()
Returns
Type Description
EventActions

getDescriptor()

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

newBuilder()

public static EventActions.Builder newBuilder()
Returns
Type Description
EventActions.Builder

newBuilder(EventActions prototype)

public static EventActions.Builder newBuilder(EventActions prototype)
Parameter
Name Description
prototype EventActions
Returns
Type Description
EventActions.Builder

parseDelimitedFrom(InputStream input)

public static EventActions parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventActions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EventActions parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EventActions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EventActions parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EventActions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EventActions parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EventActions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EventActions parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EventActions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EventActions parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EventActions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EventActions
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EventActions> parser()
Returns
Type Description
Parser<EventActions>

Methods

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

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getArtifactDelta() (deprecated)

public Map<String,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<string, int32> artifact_delta = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

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

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<string, int32> 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<string, int32> 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

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.

getParserForType()

public Parser<EventActions> getParserForType()
Returns
Type Description
Parser<EventActions>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

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.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected EventActions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EventActions.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException