Package com.google.cloud.aiplatform.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Optional.Optional.Optional.booleanOptional.Deprecated.intOptional.Optional.intgetArtifactDeltaOrDefault(String key, int defaultValue) Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Deprecated.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.booleanOptional.com.google.protobuf.StructOptional.com.google.protobuf.Struct.BuilderOptional.com.google.protobuf.StructOrBuilderOptional.Optional.com.google.protobuf.ByteStringOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeFrom(EventActions other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRequestedAuthConfigs(com.google.protobuf.Struct value) Optional.mergeStateDelta(com.google.protobuf.Struct value) Optional.putAllArtifactDelta(Map<String, Integer> values) Optional.putArtifactDelta(String key, int value) Optional.Optional.setEscalate(boolean value) Optional.setRequestedAuthConfigs(com.google.protobuf.Struct value) Optional.setRequestedAuthConfigs(com.google.protobuf.Struct.Builder builderForValue) Optional.setSkipSummarization(boolean value) Optional.setStateDelta(com.google.protobuf.Struct value) Optional.setStateDelta(com.google.protobuf.Struct.Builder builderForValue) Optional.setTransferAgent(String value) Optional.setTransferAgentBytes(com.google.protobuf.ByteString value) Optional.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<EventActions.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EventActions.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<EventActions.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<EventActions.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<EventActions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getSkipSummarizationin interfaceEventActionsOrBuilder- Returns:
- The skipSummarization.
-
setSkipSummarization
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
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:
hasStateDeltain interfaceEventActionsOrBuilder- 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:
getStateDeltain interfaceEventActionsOrBuilder- Returns:
- The stateDelta.
-
setStateDelta
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
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
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
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:
getStateDeltaOrBuilderin interfaceEventActionsOrBuilder
-
getArtifactDeltaCount
public int getArtifactDeltaCount()Description copied from interface:EventActionsOrBuilderOptional. 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:
getArtifactDeltaCountin interfaceEventActionsOrBuilder
-
containsArtifactDelta
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:
containsArtifactDeltain interfaceEventActionsOrBuilder
-
getArtifactDelta
Deprecated.UsegetArtifactDeltaMap()instead.- Specified by:
getArtifactDeltain interfaceEventActionsOrBuilder
-
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:
getArtifactDeltaMapin interfaceEventActionsOrBuilder
-
getArtifactDeltaOrDefault
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:
getArtifactDeltaOrDefaultin interfaceEventActionsOrBuilder
-
getArtifactDeltaOrThrow
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:
getArtifactDeltaOrThrowin interfaceEventActionsOrBuilder
-
clearArtifactDelta
-
removeArtifactDelta
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.Use alternate mutation accessors instead. -
putArtifactDelta
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
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:
getEscalatein interfaceEventActionsOrBuilder- Returns:
- The escalate.
-
setEscalate
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
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:
hasRequestedAuthConfigsin interfaceEventActionsOrBuilder- 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:
getRequestedAuthConfigsin interfaceEventActionsOrBuilder- Returns:
- The requestedAuthConfigs.
-
setRequestedAuthConfigs
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
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
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:
getRequestedAuthConfigsOrBuilderin interfaceEventActionsOrBuilder
-
getTransferAgent
Optional. If set, the event transfers to the specified agent.
string transfer_agent = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTransferAgentin interfaceEventActionsOrBuilder- 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:
getTransferAgentBytesin interfaceEventActionsOrBuilder- Returns:
- The bytes for transferAgent.
-
setTransferAgent
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
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
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.
-