public final class EventMetadata extends com.google.protobuf.GeneratedMessageV3 implements EventMetadataOrBuilder
Metadata relating to a LLM response event.Protobuf type
google.cloud.aiplatform.v1beta1.EventMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
EventMetadata.Builder
Metadata relating to a LLM response event.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BRANCH_FIELD_NUMBER |
static int |
GROUNDING_METADATA_FIELD_NUMBER |
static int |
INTERRUPTED_FIELD_NUMBER |
static int |
LONG_RUNNING_TOOL_IDS_FIELD_NUMBER |
static int |
PARTIAL_FIELD_NUMBER |
static int |
TURN_COMPLETE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBranch()
Optional.
|
com.google.protobuf.ByteString |
getBranchBytes()
Optional.
|
static EventMetadata |
getDefaultInstance() |
EventMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
GroundingMetadata |
getGroundingMetadata()
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.
|
com.google.protobuf.Parser<EventMetadata> |
getParserForType() |
boolean |
getPartial()
Optional.
|
int |
getSerializedSize() |
boolean |
getTurnComplete()
Optional.
|
boolean |
hasGroundingMetadata()
Optional.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EventMetadata.Builder |
newBuilder() |
static EventMetadata.Builder |
newBuilder(EventMetadata prototype) |
EventMetadata.Builder |
newBuilderForType() |
protected EventMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static EventMetadata |
parseDelimitedFrom(InputStream input) |
static EventMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventMetadata |
parseFrom(byte[] data) |
static EventMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventMetadata |
parseFrom(ByteBuffer data) |
static EventMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static EventMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static EventMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static EventMetadata |
parseFrom(InputStream input) |
static EventMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<EventMetadata> |
parser() |
EventMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int GROUNDING_METADATA_FIELD_NUMBER
public static final int PARTIAL_FIELD_NUMBER
public static final int TURN_COMPLETE_FIELD_NUMBER
public static final int INTERRUPTED_FIELD_NUMBER
public static final int LONG_RUNNING_TOOL_IDS_FIELD_NUMBER
public static final int BRANCH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static EventMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static EventMetadata parseFrom(InputStream input) throws IOException
IOExceptionpublic static EventMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventMetadata parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static EventMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static EventMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static EventMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic EventMetadata.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static EventMetadata.Builder newBuilder()
public static EventMetadata.Builder newBuilder(EventMetadata prototype)
public EventMetadata.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected EventMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static EventMetadata getDefaultInstance()
public static com.google.protobuf.Parser<EventMetadata> parser()
public com.google.protobuf.Parser<EventMetadata> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public EventMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.