public static final class EventMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder> implements EventMetadataOrBuilder
Metadata relating to a LLM response event.Protobuf type
google.cloud.aiplatform.v1beta1.EventMetadatagetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EventMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EventMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EventMetadata.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventMetadata.Builder>public EventMetadata.Builder mergeFrom(EventMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public EventMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EventMetadata.Builder>IOExceptionpublic boolean hasGroundingMetadata()
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
hasGroundingMetadata in interface EventMetadataOrBuilderpublic GroundingMetadata getGroundingMetadata()
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
getGroundingMetadata in interface EventMetadataOrBuilderpublic EventMetadata.Builder setGroundingMetadata(GroundingMetadata value)
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadata.Builder setGroundingMetadata(GroundingMetadata.Builder builderForValue)
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadata.Builder mergeGroundingMetadata(GroundingMetadata value)
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadata.Builder clearGroundingMetadata()
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadata.Builder getGroundingMetadataBuilder()
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
public GroundingMetadataOrBuilder getGroundingMetadataOrBuilder()
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];
getGroundingMetadataOrBuilder in interface EventMetadataOrBuilderpublic boolean getPartial()
Optional. Indicates whether the text content is part of a unfinished text stream. Only used for streaming mode and when the content is plain text.
bool partial = 2 [(.google.api.field_behavior) = OPTIONAL];getPartial in interface EventMetadataOrBuilderpublic EventMetadata.Builder setPartial(boolean value)
Optional. Indicates whether the text content is part of a unfinished text stream. Only used for streaming mode and when the content is plain text.
bool partial = 2 [(.google.api.field_behavior) = OPTIONAL];value - The partial to set.public EventMetadata.Builder clearPartial()
Optional. Indicates whether the text content is part of a unfinished text stream. Only used for streaming mode and when the content is plain text.
bool partial = 2 [(.google.api.field_behavior) = OPTIONAL];public boolean getTurnComplete()
Optional. Indicates whether the response from the model is complete. Only used for streaming mode.
bool turn_complete = 3 [(.google.api.field_behavior) = OPTIONAL];getTurnComplete in interface EventMetadataOrBuilderpublic EventMetadata.Builder setTurnComplete(boolean value)
Optional. Indicates whether the response from the model is complete. Only used for streaming mode.
bool turn_complete = 3 [(.google.api.field_behavior) = OPTIONAL];value - The turnComplete to set.public EventMetadata.Builder clearTurnComplete()
Optional. Indicates whether the response from the model is complete. Only used for streaming mode.
bool turn_complete = 3 [(.google.api.field_behavior) = OPTIONAL];public boolean getInterrupted()
Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.
bool interrupted = 4 [(.google.api.field_behavior) = OPTIONAL];getInterrupted in interface EventMetadataOrBuilderpublic EventMetadata.Builder setInterrupted(boolean value)
Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.
bool interrupted = 4 [(.google.api.field_behavior) = OPTIONAL];value - The interrupted to set.public EventMetadata.Builder clearInterrupted()
Optional. Flag indicating that LLM was interrupted when generating the content. Usually it's due to user interruption during a bidi streaming.
bool interrupted = 4 [(.google.api.field_behavior) = OPTIONAL];public com.google.protobuf.ProtocolStringList getLongRunningToolIdsList()
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
getLongRunningToolIdsList in interface EventMetadataOrBuilderpublic int getLongRunningToolIdsCount()
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
getLongRunningToolIdsCount in interface EventMetadataOrBuilderpublic String getLongRunningToolIds(int index)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
getLongRunningToolIds in interface EventMetadataOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getLongRunningToolIdsBytes(int index)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
getLongRunningToolIdsBytes in interface EventMetadataOrBuilderindex - The index of the value to return.public EventMetadata.Builder setLongRunningToolIds(int index, String value)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
index - The index to set the value at.value - The longRunningToolIds to set.public EventMetadata.Builder addLongRunningToolIds(String value)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The longRunningToolIds to add.public EventMetadata.Builder addAllLongRunningToolIds(Iterable<String> values)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
values - The longRunningToolIds to add.public EventMetadata.Builder clearLongRunningToolIds()
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
public EventMetadata.Builder addLongRunningToolIdsBytes(com.google.protobuf.ByteString value)
Optional. Set of ids of the long running function calls. Agent client will know from this field about which function call is long running. Only valid for function call event.
repeated string long_running_tool_ids = 5 [(.google.api.field_behavior) = OPTIONAL];
value - The bytes of the longRunningToolIds to add.public String getBranch()
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
string branch = 6 [(.google.api.field_behavior) = OPTIONAL];getBranch in interface EventMetadataOrBuilderpublic com.google.protobuf.ByteString getBranchBytes()
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
string branch = 6 [(.google.api.field_behavior) = OPTIONAL];getBranchBytes in interface EventMetadataOrBuilderpublic EventMetadata.Builder setBranch(String value)
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
string branch = 6 [(.google.api.field_behavior) = OPTIONAL];value - The branch to set.public EventMetadata.Builder clearBranch()
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
string branch = 6 [(.google.api.field_behavior) = OPTIONAL];public EventMetadata.Builder setBranchBytes(com.google.protobuf.ByteString value)
Optional. The branch of the event. The format is like agent_1.agent_2.agent_3, where agent_1 is the parent of agent_2, and agent_2 is the parent of agent_3. Branch is used when multiple child agents shouldn't see their siblings' conversation history.
string branch = 6 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for branch to set.public final EventMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>public final EventMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EventMetadata.Builder>Copyright © 2025 Google LLC. All rights reserved.