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. The result of executing the ExecutableCode.
-
codeExecutionResult
@CanIgnoreReturnValue public Part.Builder codeExecutionResult(CodeExecutionResult.Builder codeExecutionResultBuilder) Setter for codeExecutionResult builder.codeExecutionResult: Optional. The 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 intended 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 intended to be executed.
-
clearExecutableCode
Clears the value of executableCode field. -
fileData
Setter for fileData.fileData: Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
-
fileData
Setter for fileData builder.fileData: Optional. The URI-based data of the part. This can be used to include files from Google Cloud Storage.
-
clearFileData
Clears the value of fileData field. -
functionCall
Setter for functionCall.functionCall: Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
-
functionCall
Setter for functionCall builder.functionCall: Optional. A predicted function call returned from the model. This contains the name of the function to call and the arguments to pass to the function.
-
clearFunctionCall
Clears the value of functionCall field. -
functionResponse
Setter for functionResponse.functionResponse: Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
-
functionResponse
@CanIgnoreReturnValue public Part.Builder functionResponse(FunctionResponse.Builder functionResponseBuilder) Setter for functionResponse builder.functionResponse: Optional. The result of a function call. This is used to provide the model with the result of a function call that it predicted.
-
clearFunctionResponse
Clears the value of functionResponse field. -
inlineData
Setter for inlineData.inlineData: Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
-
inlineData
Setter for inlineData builder.inlineData: Optional. The inline data content of the part. This can be used to include images, audio, or video in a request.
-
clearInlineData
Clears the value of inlineData field. -
text
Setter for text.text: Optional. The text content of the part. When sent from the VSCode Gemini Code Assist extension, references to @mentioned items will be converted to markdown boldface text. For example `@my-repo` will be converted to and sent as `**my-repo**` by the IDE agent.
-
clearText
Clears the value of text field. -
thought
Setter for thought.thought: Optional. Indicates whether the `part` represents the model's thought process or reasoning.
-
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
-