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