Class UsageEmbeddingsResponse.Builder
-
- All Implemented Interfaces:
public final class UsageEmbeddingsResponse.BuilderA builder for UsageEmbeddingsResponse.
-
-
Method Summary
-
-
Method Detail
-
data
final UsageEmbeddingsResponse.Builder data(List<UsageEmbeddingsResponse.Data> data)
-
data
final UsageEmbeddingsResponse.Builder data(JsonField<List<UsageEmbeddingsResponse.Data>> data)
Sets Builder.data to an arbitrary JSON value.
You should usually call Builder.data with a well-typed
List<Data>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addData
final UsageEmbeddingsResponse.Builder addData(UsageEmbeddingsResponse.Data data)
Adds a single Data to Builder.data.
-
hasMore
final UsageEmbeddingsResponse.Builder hasMore(Boolean hasMore)
-
hasMore
final UsageEmbeddingsResponse.Builder hasMore(JsonField<Boolean> hasMore)
Sets Builder.hasMore to an arbitrary JSON value.
You should usually call Builder.hasMore with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
nextPage
final UsageEmbeddingsResponse.Builder nextPage(String nextPage)
-
nextPage
final UsageEmbeddingsResponse.Builder nextPage(Optional<String> nextPage)
Alias for calling Builder.nextPage with
nextPage.orElse(null).
-
nextPage
final UsageEmbeddingsResponse.Builder nextPage(JsonField<String> nextPage)
Sets Builder.nextPage to an arbitrary JSON value.
You should usually call Builder.nextPage with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
object_
final UsageEmbeddingsResponse.Builder object_(JsonValue object_)
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("page")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final UsageEmbeddingsResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final UsageEmbeddingsResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final UsageEmbeddingsResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final UsageEmbeddingsResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final UsageEmbeddingsResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final UsageEmbeddingsResponse build()
Returns an immutable instance of UsageEmbeddingsResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.data() .hasMore() .nextPage()
-
-
-
-