public static final class EventMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<EventMetadata.Builder> implements EventMetadataOrBuilder
Metadata relating to a LLM response event.Protobuf type
google.cloud.aiplatform.v1beta1.EventMetadata| Modifier and Type | Method and Description |
|---|---|
EventMetadata.Builder |
addAllLongRunningToolIds(Iterable<String> values)
Optional.
|
EventMetadata.Builder |
addLongRunningToolIds(String value)
Optional.
|
EventMetadata.Builder |
addLongRunningToolIdsBytes(com.google.protobuf.ByteString value)
Optional.
|
EventMetadata |
build() |
EventMetadata |
buildPartial() |
EventMetadata.Builder |
clear() |
EventMetadata.Builder |
clearBranch()
Optional.
|
EventMetadata.Builder |
clearCustomMetadata()
The custom metadata of the LlmResponse.
|
EventMetadata.Builder |
clearGroundingMetadata()
Optional.
|
EventMetadata.Builder |
clearInterrupted()
Optional.
|
EventMetadata.Builder |
clearLongRunningToolIds()
Optional.
|
EventMetadata.Builder |
clearPartial()
Optional.
|
EventMetadata.Builder |
clearTurnComplete()
Optional.
|
String |
getBranch()
Optional.
|
com.google.protobuf.ByteString |
getBranchBytes()
Optional.
|
com.google.protobuf.Struct |
getCustomMetadata()
The custom metadata of the LlmResponse.
|
com.google.protobuf.Struct.Builder |
getCustomMetadataBuilder()
The custom metadata of the LlmResponse.
|
com.google.protobuf.StructOrBuilder |
getCustomMetadataOrBuilder()
The custom metadata of the LlmResponse.
|
EventMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
GroundingMetadata |
getGroundingMetadata()
Optional.
|
GroundingMetadata.Builder |
getGroundingMetadataBuilder()
Optional.
|
GroundingMetadataOrBuilder |
getGroundingMetadataOrBuilder()
Optional.
|
boolean |
getInterrupted()
Optional.
|
String |
getLongRunningToolIds(int index)
Optional.
|
com.google.protobuf.ByteString |
getLongRunningToolIdsBytes(int index)
Optional.
|
int |
getLongRunningToolIdsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getLongRunningToolIdsList()
Optional.
|
boolean |
getPartial()
Optional.
|
boolean |
getTurnComplete()
Optional.
|
boolean |
hasCustomMetadata()
The custom metadata of the LlmResponse.
|
boolean |
hasGroundingMetadata()
Optional.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EventMetadata.Builder |
mergeCustomMetadata(com.google.protobuf.Struct value)
The custom metadata of the LlmResponse.
|
EventMetadata.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EventMetadata.Builder |
mergeFrom(EventMetadata other) |
EventMetadata.Builder |
mergeFrom(com.google.protobuf.Message other) |
EventMetadata.Builder |
mergeGroundingMetadata(GroundingMetadata value)
Optional.
|
EventMetadata.Builder |
setBranch(String value)
Optional.
|
EventMetadata.Builder |
setBranchBytes(com.google.protobuf.ByteString value)
Optional.
|
EventMetadata.Builder |
setCustomMetadata(com.google.protobuf.Struct.Builder builderForValue)
The custom metadata of the LlmResponse.
|
EventMetadata.Builder |
setCustomMetadata(com.google.protobuf.Struct value)
The custom metadata of the LlmResponse.
|
EventMetadata.Builder |
setGroundingMetadata(GroundingMetadata.Builder builderForValue)
Optional.
|
EventMetadata.Builder |
setGroundingMetadata(GroundingMetadata value)
Optional.
|
EventMetadata.Builder |
setInterrupted(boolean value)
Optional.
|
EventMetadata.Builder |
setLongRunningToolIds(int index,
String value)
Optional.
|
EventMetadata.Builder |
setPartial(boolean value)
Optional.
|
EventMetadata.Builder |
setTurnComplete(boolean value)
Optional.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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 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.GeneratedMessage.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 boolean hasCustomMetadata()
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;hasCustomMetadata in interface EventMetadataOrBuilderpublic com.google.protobuf.Struct getCustomMetadata()
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;getCustomMetadata in interface EventMetadataOrBuilderpublic EventMetadata.Builder setCustomMetadata(com.google.protobuf.Struct value)
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;public EventMetadata.Builder setCustomMetadata(com.google.protobuf.Struct.Builder builderForValue)
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;public EventMetadata.Builder mergeCustomMetadata(com.google.protobuf.Struct value)
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;public EventMetadata.Builder clearCustomMetadata()
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;public com.google.protobuf.Struct.Builder getCustomMetadataBuilder()
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;public com.google.protobuf.StructOrBuilder getCustomMetadataOrBuilder()
The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;getCustomMetadataOrBuilder in interface EventMetadataOrBuilderCopyright © 2026 Google LLC. All rights reserved.