Class Part.Builder
- Enclosing class:
- Part
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Partbuild()Clears the value of codeExecutionResult field.Clears the value of executableCode field.Clears the value of fileData field.Clears the value of functionCall field.Clears the value of functionResponse field.Clears the value of inlineData field.Clears the value of mediaResolution field.Clears the value of text field.Clears the value of thought field.Clears the value of thoughtSignature field.Clears the value of videoMetadata field.abstract Part.BuildercodeExecutionResult(CodeExecutionResult codeExecutionResult) Setter for codeExecutionResult.codeExecutionResult(CodeExecutionResult.Builder codeExecutionResultBuilder) Setter for codeExecutionResult builder.abstract Part.BuilderexecutableCode(ExecutableCode executableCode) Setter for executableCode.executableCode(ExecutableCode.Builder executableCodeBuilder) Setter for executableCode builder.abstract Part.BuilderSetter for fileData.fileData(FileData.Builder fileDataBuilder) Setter for fileData builder.abstract Part.BuilderfunctionCall(FunctionCall functionCall) Setter for functionCall.functionCall(FunctionCall.Builder functionCallBuilder) Setter for functionCall builder.abstract Part.BuilderfunctionResponse(FunctionResponse functionResponse) Setter for functionResponse.functionResponse(FunctionResponse.Builder functionResponseBuilder) Setter for functionResponse builder.abstract Part.BuilderinlineData(Blob inlineData) Setter for inlineData.inlineData(Blob.Builder inlineDataBuilder) Setter for inlineData builder.abstract Part.BuildermediaResolution(PartMediaResolution mediaResolution) Setter for mediaResolution.mediaResolution(PartMediaResolution.Builder mediaResolutionBuilder) Setter for mediaResolution builder.abstract Part.BuilderSetter for text.abstract Part.Builderthought(boolean thought) Setter for thought.abstract Part.BuilderthoughtSignature(byte[] thoughtSignature) Setter for thoughtSignature.abstract Part.BuildervideoMetadata(VideoMetadata videoMetadata) Setter for videoMetadata.videoMetadata(VideoMetadata.Builder videoMetadataBuilder) Setter for videoMetadata builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mediaResolution
Setter for mediaResolution.mediaResolution: Media resolution for the input media.
-
mediaResolution
@CanIgnoreReturnValue public Part.Builder mediaResolution(PartMediaResolution.Builder mediaResolutionBuilder) Setter for mediaResolution builder.mediaResolution: Media resolution for the input media.
-
clearMediaResolution
Clears the value of mediaResolution field. -
codeExecutionResult
Setter for codeExecutionResult.codeExecutionResult: Optional. Result of executing the [ExecutableCode].
-
codeExecutionResult
@CanIgnoreReturnValue public Part.Builder codeExecutionResult(CodeExecutionResult.Builder codeExecutionResultBuilder) Setter for codeExecutionResult builder.codeExecutionResult: Optional. Result of executing the [ExecutableCode].
-
clearCodeExecutionResult
Clears the value of codeExecutionResult field. -
executableCode
Setter for executableCode.executableCode: Optional. Code generated by the model that is meant to be executed.
-
executableCode
@CanIgnoreReturnValue public Part.Builder executableCode(ExecutableCode.Builder executableCodeBuilder) Setter for executableCode builder.executableCode: Optional. Code generated by the model that is meant to be executed.
-
clearExecutableCode
Clears the value of executableCode field. -
fileData
Setter for fileData.fileData: Optional. URI based data.
-
fileData
Setter for fileData builder.fileData: Optional. URI based data.
-
clearFileData
Clears the value of fileData field. -
functionCall
Setter for functionCall.functionCall: Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values.
-
functionCall
Setter for functionCall builder.functionCall: Optional. A predicted [FunctionCall] returned from the model that contains a string representing the [FunctionDeclaration.name] with the parameters and their values.
-
clearFunctionCall
Clears the value of functionCall field. -
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
@CanIgnoreReturnValue public Part.Builder functionResponse(FunctionResponse.Builder functionResponseBuilder) 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.
-
clearFunctionResponse
Clears the value of functionResponse field. -
inlineData
Setter for inlineData.inlineData: Optional. Inlined bytes data.
-
inlineData
Setter for inlineData builder.inlineData: Optional. Inlined bytes data.
-
clearInlineData
Clears the value of inlineData field. -
text
Setter for text.text: Optional. Text part (can be code).
-
clearText
Clears the value of text field. -
thought
Setter for thought.thought: Optional. Indicates if the part is thought from the model.
-
clearThought
Clears the value of thought field. -
thoughtSignature
Setter for thoughtSignature.thoughtSignature: Optional. An opaque signature for the thought so it can be reused in subsequent requests.
-
clearThoughtSignature
Clears the value of thoughtSignature field. -
videoMetadata
Setter for videoMetadata.videoMetadata: Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
-
videoMetadata
Setter for videoMetadata builder.videoMetadata: Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.
-
clearVideoMetadata
Clears the value of videoMetadata field. -
build
-