Class BetaWebSearchToolResultError.Builder
-
- All Implemented Interfaces:
public final class BetaWebSearchToolResultError.BuilderA builder for BetaWebSearchToolResultError.
-
-
Method Summary
Modifier and Type Method Description final BetaWebSearchToolResultError.BuildererrorCode(BetaWebSearchToolResultErrorCode errorCode)final BetaWebSearchToolResultError.BuildererrorCode(JsonField<BetaWebSearchToolResultErrorCode> errorCode)Sets Builder.errorCode to an arbitrary JSON value. final BetaWebSearchToolResultError.Buildertype(JsonValue type)Sets the field to an arbitrary JSON value. final BetaWebSearchToolResultError.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final BetaWebSearchToolResultError.BuilderputAdditionalProperty(String key, JsonValue value)final BetaWebSearchToolResultError.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final BetaWebSearchToolResultError.BuilderremoveAdditionalProperty(String key)final BetaWebSearchToolResultError.BuilderremoveAllAdditionalProperties(Set<String> keys)final BetaWebSearchToolResultErrorbuild()Returns an immutable instance of BetaWebSearchToolResultError. -
-
Method Detail
-
errorCode
final BetaWebSearchToolResultError.Builder errorCode(BetaWebSearchToolResultErrorCode errorCode)
-
errorCode
final BetaWebSearchToolResultError.Builder errorCode(JsonField<BetaWebSearchToolResultErrorCode> errorCode)
Sets Builder.errorCode to an arbitrary JSON value.
You should usually call Builder.errorCode with a well-typed BetaWebSearchToolResultErrorCode value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaWebSearchToolResultError.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("web_search_tool_result_error")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaWebSearchToolResultError.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaWebSearchToolResultError.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaWebSearchToolResultError.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaWebSearchToolResultError.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaWebSearchToolResultError.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaWebSearchToolResultError build()
Returns an immutable instance of BetaWebSearchToolResultError.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.errorCode()
-
-
-
-