Interface AssistantContentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AssistantContent,AssistantContent.Builder
@Generated
public interface AssistantContentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionResult of executing an ExecutableCode.Result of executing an ExecutableCode.Code generated by the model that is meant to be executed.Code generated by the model that is meant to be executed.getFile()A file, e.g., an audio summary.A file, e.g., an audio summary.Inline binary data.Inline binary data.getRole()The producer of the content.com.google.protobuf.ByteStringThe producer of the content.getText()Inline text.com.google.protobuf.ByteStringInline text.booleanOptional.booleanResult of executing an ExecutableCode.booleanCode generated by the model that is meant to be executed.booleanhasFile()A file, e.g., an audio summary.booleanInline binary data.booleanhasText()Inline text.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasText
boolean hasText()Inline text.
string text = 2;- Returns:
- Whether the text field is set.
-
getText
String getText()Inline text.
string text = 2;- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()Inline text.
string text = 2;- Returns:
- The bytes for text.
-
hasInlineData
boolean hasInlineData()Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3;- Returns:
- Whether the inlineData field is set.
-
getInlineData
AssistantContent.Blob getInlineData()Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3;- Returns:
- The inlineData.
-
getInlineDataOrBuilder
AssistantContent.BlobOrBuilder getInlineDataOrBuilder()Inline binary data.
.google.cloud.discoveryengine.v1.AssistantContent.Blob inline_data = 3; -
hasFile
boolean hasFile()A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4;- Returns:
- Whether the file field is set.
-
getFile
AssistantContent.File getFile()A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4;- Returns:
- The file.
-
getFileOrBuilder
AssistantContent.FileOrBuilder getFileOrBuilder()A file, e.g., an audio summary.
.google.cloud.discoveryengine.v1.AssistantContent.File file = 4; -
hasExecutableCode
boolean hasExecutableCode()Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7;- Returns:
- Whether the executableCode field is set.
-
getExecutableCode
AssistantContent.ExecutableCode getExecutableCode()Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7;- Returns:
- The executableCode.
-
getExecutableCodeOrBuilder
AssistantContent.ExecutableCodeOrBuilder getExecutableCodeOrBuilder()Code generated by the model that is meant to be executed.
.google.cloud.discoveryengine.v1.AssistantContent.ExecutableCode executable_code = 7; -
hasCodeExecutionResult
boolean hasCodeExecutionResult()Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8;- Returns:
- Whether the codeExecutionResult field is set.
-
getCodeExecutionResult
AssistantContent.CodeExecutionResult getCodeExecutionResult()Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8;- Returns:
- The codeExecutionResult.
-
getCodeExecutionResultOrBuilder
AssistantContent.CodeExecutionResultOrBuilder getCodeExecutionResultOrBuilder()Result of executing an ExecutableCode.
.google.cloud.discoveryengine.v1.AssistantContent.CodeExecutionResult code_execution_result = 8; -
getRole
String getRole()The producer of the content. Can be "model" or "user".
string role = 1;- Returns:
- The role.
-
getRoleBytes
com.google.protobuf.ByteString getRoleBytes()The producer of the content. Can be "model" or "user".
string role = 1;- Returns:
- The bytes for role.
-
getThought
boolean getThought()Optional. Indicates if the part is thought from the model.
bool thought = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- The thought.
-
getDataCase
AssistantContent.DataCase getDataCase()
-