Package com.google.cloud.aiplatform.v1
Class EventMetadata
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.EventMetadata
- All Implemented Interfaces:
EventMetadataOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class EventMetadata
extends com.google.protobuf.GeneratedMessage
implements EventMetadataOrBuilder
Metadata relating to a LLM response event.Protobuf type
google.cloud.aiplatform.v1.EventMetadata- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadata relating to a LLM response event.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.StructThe custom metadata of the LlmResponse.com.google.protobuf.StructOrBuilderThe custom metadata of the LlmResponse.static EventMetadatastatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.booleanOptional.getLongRunningToolIds(int index) Optional.com.google.protobuf.ByteStringgetLongRunningToolIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.Optional.com.google.protobuf.Parser<EventMetadata>booleanOptional.intbooleanOptional.booleanThe custom metadata of the LlmResponse.booleanOptional.inthashCode()booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic EventMetadata.Builderstatic EventMetadata.BuildernewBuilder(EventMetadata prototype) protected EventMetadata.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static EventMetadataparseDelimitedFrom(InputStream input) static EventMetadataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventMetadataparseFrom(byte[] data) static EventMetadataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventMetadataparseFrom(com.google.protobuf.ByteString data) static EventMetadataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventMetadataparseFrom(com.google.protobuf.CodedInputStream input) static EventMetadataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventMetadataparseFrom(InputStream input) static EventMetadataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static EventMetadataparseFrom(ByteBuffer data) static EventMetadataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<EventMetadata>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
GROUNDING_METADATA_FIELD_NUMBER
public static final int GROUNDING_METADATA_FIELD_NUMBER- See Also:
-
PARTIAL_FIELD_NUMBER
public static final int PARTIAL_FIELD_NUMBER- See Also:
-
TURN_COMPLETE_FIELD_NUMBER
public static final int TURN_COMPLETE_FIELD_NUMBER- See Also:
-
INTERRUPTED_FIELD_NUMBER
public static final int INTERRUPTED_FIELD_NUMBER- See Also:
-
LONG_RUNNING_TOOL_IDS_FIELD_NUMBER
public static final int LONG_RUNNING_TOOL_IDS_FIELD_NUMBER- See Also:
-
BRANCH_FIELD_NUMBER
public static final int BRANCH_FIELD_NUMBER- See Also:
-
CUSTOM_METADATA_FIELD_NUMBER
public static final int CUSTOM_METADATA_FIELD_NUMBER- See Also:
-
INPUT_TRANSCRIPTION_FIELD_NUMBER
public static final int INPUT_TRANSCRIPTION_FIELD_NUMBER- See Also:
-
OUTPUT_TRANSCRIPTION_FIELD_NUMBER
public static final int OUTPUT_TRANSCRIPTION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasGroundingMetadata
public boolean hasGroundingMetadata()Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasGroundingMetadatain interfaceEventMetadataOrBuilder- Returns:
- Whether the groundingMetadata field is set.
-
getGroundingMetadata
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingMetadatain interfaceEventMetadataOrBuilder- Returns:
- The groundingMetadata.
-
getGroundingMetadataOrBuilder
Optional. Metadata returned to client when grounding is enabled.
.google.cloud.aiplatform.v1.GroundingMetadata grounding_metadata = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGroundingMetadataOrBuilderin interfaceEventMetadataOrBuilder
-
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];- Specified by:
getPartialin interfaceEventMetadataOrBuilder- Returns:
- The partial.
-
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];- Specified by:
getTurnCompletein interfaceEventMetadataOrBuilder- Returns:
- The turnComplete.
-
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];- Specified by:
getInterruptedin interfaceEventMetadataOrBuilder- Returns:
- The interrupted.
-
getLongRunningToolIdsList
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];- Specified by:
getLongRunningToolIdsListin interfaceEventMetadataOrBuilder- Returns:
- A list containing the longRunningToolIds.
-
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];- Specified by:
getLongRunningToolIdsCountin interfaceEventMetadataOrBuilder- Returns:
- The count of longRunningToolIds.
-
getLongRunningToolIds
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];- Specified by:
getLongRunningToolIdsin interfaceEventMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The longRunningToolIds at the given index.
-
getLongRunningToolIdsBytes
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];- Specified by:
getLongRunningToolIdsBytesin interfaceEventMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the longRunningToolIds at the given index.
-
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];- Specified by:
getBranchin interfaceEventMetadataOrBuilder- Returns:
- The branch.
-
getBranchBytes
public 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];- Specified by:
getBranchBytesin interfaceEventMetadataOrBuilder- Returns:
- The bytes for branch.
-
hasCustomMetadata
public boolean hasCustomMetadata()The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;- Specified by:
hasCustomMetadatain interfaceEventMetadataOrBuilder- Returns:
- Whether the customMetadata field is set.
-
getCustomMetadata
public com.google.protobuf.Struct getCustomMetadata()The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;- Specified by:
getCustomMetadatain interfaceEventMetadataOrBuilder- Returns:
- The customMetadata.
-
getCustomMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getCustomMetadataOrBuilder()The custom metadata of the LlmResponse.
.google.protobuf.Struct custom_metadata = 7;- Specified by:
getCustomMetadataOrBuilderin interfaceEventMetadataOrBuilder
-
hasInputTranscription
public boolean hasInputTranscription()Optional. Audio transcription of user input.
.google.cloud.aiplatform.v1.Transcription input_transcription = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasInputTranscriptionin interfaceEventMetadataOrBuilder- Returns:
- Whether the inputTranscription field is set.
-
getInputTranscription
Optional. Audio transcription of user input.
.google.cloud.aiplatform.v1.Transcription input_transcription = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputTranscriptionin interfaceEventMetadataOrBuilder- Returns:
- The inputTranscription.
-
getInputTranscriptionOrBuilder
Optional. Audio transcription of user input.
.google.cloud.aiplatform.v1.Transcription input_transcription = 10 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getInputTranscriptionOrBuilderin interfaceEventMetadataOrBuilder
-
hasOutputTranscription
public boolean hasOutputTranscription()Optional. Audio transcription of model output.
.google.cloud.aiplatform.v1.Transcription output_transcription = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasOutputTranscriptionin interfaceEventMetadataOrBuilder- Returns:
- Whether the outputTranscription field is set.
-
getOutputTranscription
Optional. Audio transcription of model output.
.google.cloud.aiplatform.v1.Transcription output_transcription = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputTranscriptionin interfaceEventMetadataOrBuilder- Returns:
- The outputTranscription.
-
getOutputTranscriptionOrBuilder
Optional. Audio transcription of model output.
.google.cloud.aiplatform.v1.Transcription output_transcription = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutputTranscriptionOrBuilderin interfaceEventMetadataOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EventMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EventMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EventMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EventMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-