Class Part.Builder
- Enclosing class:
- Part
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Part
build()
abstract Part.Builder
codeExecutionResult
(CodeExecutionResult codeExecutionResult) Setter for codeExecutionResult.codeExecutionResult
(CodeExecutionResult.Builder codeExecutionResultBuilder) Setter for codeExecutionResult builder.abstract Part.Builder
executableCode
(ExecutableCode executableCode) Setter for executableCode.executableCode
(ExecutableCode.Builder executableCodeBuilder) Setter for executableCode builder.abstract Part.Builder
Setter for fileData.fileData
(FileData.Builder fileDataBuilder) Setter for fileData builder.abstract Part.Builder
functionCall
(FunctionCall functionCall) Setter for functionCall.functionCall
(FunctionCall.Builder functionCallBuilder) Setter for functionCall builder.abstract Part.Builder
functionResponse
(FunctionResponse functionResponse) Setter for functionResponse.functionResponse
(FunctionResponse.Builder functionResponseBuilder) Setter for functionResponse builder.abstract Part.Builder
inlineData
(Blob inlineData) Setter for inlineData.inlineData
(Blob.Builder inlineDataBuilder) Setter for inlineData builder.abstract Part.Builder
Setter for text.abstract Part.Builder
thought
(boolean thought) Setter for thought.abstract Part.Builder
thoughtSignature
(byte[] thoughtSignature) Setter for thoughtSignature.abstract Part.Builder
videoMetadata
(VideoMetadata videoMetadata) Setter for videoMetadata.videoMetadata
(VideoMetadata.Builder videoMetadataBuilder) Setter for videoMetadata builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
videoMetadata
Setter for videoMetadata.videoMetadata: Metadata for a given video.
-
videoMetadata
Setter for videoMetadata builder.videoMetadata: Metadata for a given video.
-
thought
Setter for thought.thought: Indicates if the part is thought from the model.
-
inlineData
Setter for inlineData.inlineData: Optional. Inlined bytes data.
-
inlineData
Setter for inlineData builder.inlineData: Optional. Inlined bytes data.
-
fileData
Setter for fileData.fileData: Optional. URI based data.
-
fileData
Setter for fileData builder.fileData: Optional. URI based data.
-
thoughtSignature
Setter for thoughtSignature.thoughtSignature: An opaque signature for the thought so it can be reused in subsequent requests.
-
functionCall
Setter for functionCall.functionCall: A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.
-
functionCall
Setter for functionCall builder.functionCall: A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing the parameters and their values.
-
codeExecutionResult
Setter for codeExecutionResult.codeExecutionResult: Optional. Result of executing the [ExecutableCode].
-
codeExecutionResult
Setter for codeExecutionResult builder.codeExecutionResult: Optional. Result of executing the [ExecutableCode].
-
executableCode
Setter for executableCode.executableCode: Optional. Code generated by the model that is meant to be executed.
-
executableCode
Setter for executableCode builder.executableCode: Optional. Code generated by the model that is meant to be executed.
-
functionResponse
Setter for functionResponse.functionResponse: Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model.
-
functionResponse
Setter for functionResponse builder.functionResponse: Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model.
-
text
Setter for text.text: Optional. Text part (can be code).
-
build
-