Uses of Class
com.google.genai.types.Part
Packages that use Part
-
Uses of Part in com.google.genai.types
Methods in com.google.genai.types that return PartModifier and TypeMethodDescriptionabstract PartPart.Builder.build()static PartConstructs a InlineData Part from a byte array and MIME type.static PartPart.fromFunctionCall(String name, Map<String, Object> args) Constructs a FunctionCall Part from a function name and args.static PartPart.fromFunctionResponse(String name, Map<String, Object> response, FunctionResponsePart... functionResponseParts) Constructs a FunctionResponse Part from a function name, response and function response parts.static PartDeserializes a JSON string to a Part object.static PartConstructs a Text Part from a text string.static PartConstructs a FileData Part from a file URI and MIME type.Methods in com.google.genai.types that return types with arguments of type PartModifier and TypeMethodDescriptionContent.parts()List of parts that constitute a single message.@Nullable com.google.common.collect.ImmutableList<Part>GenerateContentResponse.parts()Returns the list of parts in the first candidate of the response.Methods in com.google.genai.types with parameters of type PartModifier and TypeMethodDescriptionstatic ContentConstructs a Content from parts, assuming the role is "user".Setter for parts.Method parameters in com.google.genai.types with type arguments of type Part