Class UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult
-
- All Implemented Interfaces:
public final class UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResultThe aggregated web search calls usage details of the specific time bucket.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult.BuilderA builder for OrganizationUsageWebSearchesResult.
-
Method Summary
Modifier and Type Method Description final LongnumModelRequests()The count of model requests. final LongnumRequests()The count of web search calls. final JsonValue_object_()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("organization.usage.web_searches.result")final Optional<String>apiKeyId()When group_by=api_key_id, this field provides the API key ID of the grouped usage result.final Optional<String>contextLevel()When group_by=context_level, this field provides the search context size of the grouped usage result.final Optional<String>model()When group_by=model, this field provides the model name of the grouped usage result.final Optional<String>projectId()When group_by=project_id, this field provides the project ID of the grouped usage result.final Optional<String>userId()When group_by=user_id, this field provides the user ID of the grouped usage result.final JsonField<Long>_numModelRequests()Returns the raw JSON value of numModelRequests. final JsonField<Long>_numRequests()Returns the raw JSON value of numRequests. final JsonField<String>_apiKeyId()Returns the raw JSON value of apiKeyId. final JsonField<String>_contextLevel()Returns the raw JSON value of contextLevel. final JsonField<String>_model()Returns the raw JSON value of model. final JsonField<String>_projectId()Returns the raw JSON value of projectId. final JsonField<String>_userId()Returns the raw JSON value of userId. final Map<String, JsonValue>_additionalProperties()final UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult.BuildertoBuilder()final UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResultvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult.Builderbuilder()Returns a mutable builder for constructing an instance of OrganizationUsageWebSearchesResult. -
-
Method Detail
-
numModelRequests
final Long numModelRequests()
The count of model requests.
-
numRequests
final Long numRequests()
The count of web search calls.
-
_object_
final JsonValue _object_()
Expected to always return the following:
JsonValue.from("organization.usage.web_searches.result")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
apiKeyId
final Optional<String> apiKeyId()
When
group_by=api_key_id, this field provides the API key ID of the grouped usage result.
-
contextLevel
final Optional<String> contextLevel()
When
group_by=context_level, this field provides the search context size of the grouped usage result.
-
model
final Optional<String> model()
When
group_by=model, this field provides the model name of the grouped usage result.
-
projectId
final Optional<String> projectId()
When
group_by=project_id, this field provides the project ID of the grouped usage result.
-
userId
final Optional<String> userId()
When
group_by=user_id, this field provides the user ID of the grouped usage result.
-
_numModelRequests
final JsonField<Long> _numModelRequests()
Returns the raw JSON value of numModelRequests.
Unlike numModelRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_numRequests
final JsonField<Long> _numRequests()
Returns the raw JSON value of numRequests.
Unlike numRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_apiKeyId
final JsonField<String> _apiKeyId()
Returns the raw JSON value of apiKeyId.
Unlike apiKeyId, this method doesn't throw if the JSON field has an unexpected type.
-
_contextLevel
final JsonField<String> _contextLevel()
Returns the raw JSON value of contextLevel.
Unlike contextLevel, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_projectId
final JsonField<String> _projectId()
Returns the raw JSON value of projectId.
Unlike projectId, this method doesn't throw if the JSON field has an unexpected type.
-
_userId
final JsonField<String> _userId()
Returns the raw JSON value of userId.
Unlike userId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult.Builder toBuilder()
-
validate
final UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static UsageCompletionsResponse.Data.Result.OrganizationUsageWebSearchesResult.Builder builder()
Returns a mutable builder for constructing an instance of OrganizationUsageWebSearchesResult.
The following fields are required:
.numModelRequests() .numRequests()
-
-
-
-