Class BetaFallbackBlock.Builder
-
- All Implemented Interfaces:
public final class BetaFallbackBlock.BuilderA builder for BetaFallbackBlock.
-
-
Method Summary
-
-
Method Detail
-
from
final BetaFallbackBlock.Builder from(BetaFallbackInfo from)
The model whose output ends at this point — the model that declined at this hop. When the declining hop is the requested model, its
modelechoes the top-levelmodelstring the caller sent (alias or canonical); when the declining hop is a fallback model, itsmodelis that model's canonical id.
-
from
final BetaFallbackBlock.Builder from(JsonField<BetaFallbackInfo> from)
Sets Builder.from to an arbitrary JSON value.
You should usually call Builder.from with a well-typed BetaFallbackInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
to
final BetaFallbackBlock.Builder to(BetaFallbackInfo to)
The fallback model producing the content that follows this block. Its
modelis always the canonical id.
-
to
final BetaFallbackBlock.Builder to(JsonField<BetaFallbackInfo> to)
Sets Builder.to to an arbitrary JSON value.
You should usually call Builder.to with a well-typed BetaFallbackInfo value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaFallbackBlock.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("fallback")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaFallbackBlock.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaFallbackBlock.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFallbackBlock.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFallbackBlock.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFallbackBlock.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFallbackBlock build()
Returns an immutable instance of BetaFallbackBlock.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.from() .to()
-
-
-
-