@Generated public final class AssistantContent extends com.google.protobuf.GeneratedMessage implements AssistantContentOrBuilder
Multi-modal content.Protobuf type
google.cloud.discoveryengine.v1.AssistantContent| Modifier and Type | Class and Description |
|---|---|
static class |
AssistantContent.Blob
Inline blob.
|
static interface |
AssistantContent.BlobOrBuilder |
static class |
AssistantContent.Builder
Multi-modal content.
|
static class |
AssistantContent.CodeExecutionResult
Result of executing ExecutableCode.
|
static interface |
AssistantContent.CodeExecutionResultOrBuilder |
static class |
AssistantContent.DataCase |
static class |
AssistantContent.ExecutableCode
Code generated by the model that is meant to be executed by the model.
|
static interface |
AssistantContent.ExecutableCodeOrBuilder |
static class |
AssistantContent.File
A file, e.g., an audio summary.
|
static interface |
AssistantContent.FileOrBuilder |
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>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CODE_EXECUTION_RESULT_FIELD_NUMBER |
static int |
EXECUTABLE_CODE_FIELD_NUMBER |
static int |
FILE_FIELD_NUMBER |
static int |
INLINE_DATA_FIELD_NUMBER |
static int |
ROLE_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
THOUGHT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AssistantContent.CodeExecutionResult |
getCodeExecutionResult()
Result of executing an ExecutableCode.
|
AssistantContent.CodeExecutionResultOrBuilder |
getCodeExecutionResultOrBuilder()
Result of executing an ExecutableCode.
|
AssistantContent.DataCase |
getDataCase() |
static AssistantContent |
getDefaultInstance() |
AssistantContent |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
AssistantContent.ExecutableCode |
getExecutableCode()
Code generated by the model that is meant to be executed.
|
AssistantContent.ExecutableCodeOrBuilder |
getExecutableCodeOrBuilder()
Code generated by the model that is meant to be executed.
|
AssistantContent.File |
getFile()
A file, e.g., an audio summary.
|
AssistantContent.FileOrBuilder |
getFileOrBuilder()
A file, e.g., an audio summary.
|
AssistantContent.Blob |
getInlineData()
Inline binary data.
|
AssistantContent.BlobOrBuilder |
getInlineDataOrBuilder()
Inline binary data.
|
com.google.protobuf.Parser<AssistantContent> |
getParserForType() |
String |
getRole()
The producer of the content.
|
com.google.protobuf.ByteString |
getRoleBytes()
The producer of the content.
|
int |
getSerializedSize() |
String |
getText()
Inline text.
|
com.google.protobuf.ByteString |
getTextBytes()
Inline text.
|
boolean |
getThought()
Optional.
|
boolean |
hasCodeExecutionResult()
Result of executing an ExecutableCode.
|
boolean |
hasExecutableCode()
Code generated by the model that is meant to be executed.
|
boolean |
hasFile()
A file, e.g., an audio summary.
|
int |
hashCode() |
boolean |
hasInlineData()
Inline binary data.
|
boolean |
hasText()
Inline text.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static AssistantContent.Builder |
newBuilder() |
static AssistantContent.Builder |
newBuilder(AssistantContent prototype) |
AssistantContent.Builder |
newBuilderForType() |
protected AssistantContent.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static AssistantContent |
parseDelimitedFrom(InputStream input) |
static AssistantContent |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AssistantContent |
parseFrom(byte[] data) |
static AssistantContent |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AssistantContent |
parseFrom(ByteBuffer data) |
static AssistantContent |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AssistantContent |
parseFrom(com.google.protobuf.ByteString data) |
static AssistantContent |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AssistantContent |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AssistantContent |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AssistantContent |
parseFrom(InputStream input) |
static AssistantContent |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AssistantContent> |
parser() |
AssistantContent.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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TEXT_FIELD_NUMBER
public static final int INLINE_DATA_FIELD_NUMBER
public static final int FILE_FIELD_NUMBER
public static final int EXECUTABLE_CODE_FIELD_NUMBER
public static final int CODE_EXECUTION_RESULT_FIELD_NUMBER
public static final int ROLE_FIELD_NUMBER
public static final int THOUGHT_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic AssistantContent.DataCase getDataCase()
getDataCase in interface AssistantContentOrBuilderpublic boolean hasText()
Inline text.
string text = 2;hasText in interface AssistantContentOrBuilderpublic String getText()
Inline text.
string text = 2;getText in interface AssistantContentOrBuilderpublic com.google.protobuf.ByteString getTextBytes()
Inline text.
string text = 2;getTextBytes in interface AssistantContentOrBuilderpublic boolean hasInlineData()
Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3;hasInlineData in interface AssistantContentOrBuilderpublic AssistantContent.Blob getInlineData()
Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3;getInlineData in interface AssistantContentOrBuilderpublic AssistantContent.BlobOrBuilder getInlineDataOrBuilder()
Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3;getInlineDataOrBuilder in interface AssistantContentOrBuilderpublic boolean hasFile()
A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4;hasFile in interface AssistantContentOrBuilderpublic AssistantContent.File getFile()
A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4;getFile in interface AssistantContentOrBuilderpublic AssistantContent.FileOrBuilder getFileOrBuilder()
A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4;getFileOrBuilder in interface AssistantContentOrBuilderpublic boolean hasExecutableCode()
Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7;
hasExecutableCode in interface AssistantContentOrBuilderpublic AssistantContent.ExecutableCode getExecutableCode()
Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7;
getExecutableCode in interface AssistantContentOrBuilderpublic AssistantContent.ExecutableCodeOrBuilder getExecutableCodeOrBuilder()
Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7;
getExecutableCodeOrBuilder in interface AssistantContentOrBuilderpublic boolean hasCodeExecutionResult()
Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8;
hasCodeExecutionResult in interface AssistantContentOrBuilderpublic AssistantContent.CodeExecutionResult getCodeExecutionResult()
Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8;
getCodeExecutionResult in interface AssistantContentOrBuilderpublic AssistantContent.CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder()
Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8;
getCodeExecutionResultOrBuilder in interface AssistantContentOrBuilderpublic String getRole()
The producer of the content. Can be "model" or "user".
string role = 1;getRole in interface AssistantContentOrBuilderpublic com.google.protobuf.ByteString getRoleBytes()
The producer of the content. Can be "model" or "user".
string role = 1;getRoleBytes in interface AssistantContentOrBuilderpublic boolean getThought()
Optional. Indicates if the part is thought from the model.
bool thought = 6 [(.google.api.field_behavior) = OPTIONAL];getThought in interface AssistantContentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic 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 AssistantContent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AssistantContent parseFrom(InputStream input) throws IOException
IOExceptionpublic static AssistantContent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AssistantContent parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AssistantContent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AssistantContent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AssistantContent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AssistantContent.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AssistantContent.Builder newBuilder()
public static AssistantContent.Builder newBuilder(AssistantContent prototype)
public AssistantContent.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AssistantContent.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static AssistantContent getDefaultInstance()
public static com.google.protobuf.Parser<AssistantContent> parser()
public com.google.protobuf.Parser<AssistantContent> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic AssistantContent getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.