Class EventMetadata (3.64.0)

public final class EventMetadata extends GeneratedMessageV3 implements EventMetadataOrBuilder

Metadata relating to a LLM response event.

Protobuf type google.cloud.aiplatform.v1beta1.EventMetadata

Inheritance

Object > AbstractMessageLite > AbstractMessage > GeneratedMessageV3 > EventMetadata

Static Fields

BRANCH_FIELD_NUMBER

public static final int BRANCH_FIELD_NUMBER
Field Value
Type Description
int

GROUNDING_METADATA_FIELD_NUMBER

public static final int GROUNDING_METADATA_FIELD_NUMBER
Field Value
Type Description
int

INTERRUPTED_FIELD_NUMBER

public static final int INTERRUPTED_FIELD_NUMBER
Field Value
Type Description
int

LONG_RUNNING_TOOL_IDS_FIELD_NUMBER

public static final int LONG_RUNNING_TOOL_IDS_FIELD_NUMBER
Field Value
Type Description
int

PARTIAL_FIELD_NUMBER

public static final int PARTIAL_FIELD_NUMBER
Field Value
Type Description
int

TURN_COMPLETE_FIELD_NUMBER

public static final int TURN_COMPLETE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EventMetadata getDefaultInstance()
Returns
Type Description
EventMetadata

getDescriptor()

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

newBuilder()

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

newBuilder(EventMetadata prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBranch()

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

Returns
Type Description
String

The branch.

getBranchBytes()

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

Returns
Type Description
ByteString

The bytes for branch.

getDefaultInstanceForType()

public EventMetadata getDefaultInstanceForType()
Returns
Type Description
EventMetadata

getGroundingMetadata()

public GroundingMetadata getGroundingMetadata()

Optional. Metadata returned to client when grounding is enabled.

.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GroundingMetadata

The groundingMetadata.

getGroundingMetadataOrBuilder()

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

Returns
Type Description
GroundingMetadataOrBuilder

getInterrupted()

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

Returns
Type Description
boolean

The interrupted.

getLongRunningToolIds(int index)

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The longRunningToolIds at the given index.

getLongRunningToolIdsBytes(int index)

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the longRunningToolIds at the given index.

getLongRunningToolIdsCount()

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

Returns
Type Description
int

The count of longRunningToolIds.

getLongRunningToolIdsList()

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

Returns
Type Description
ProtocolStringList

A list containing the longRunningToolIds.

getParserForType()

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

getPartial()

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

Returns
Type Description
boolean

The partial.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTurnComplete()

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

Returns
Type Description
boolean

The turnComplete.

hasGroundingMetadata()

public boolean hasGroundingMetadata()

Optional. Metadata returned to client when grounding is enabled.

.google.cloud.aiplatform.v1beta1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the groundingMetadata field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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