Class PromptAnalyzerCreateResponse.Builder
-
- All Implemented Interfaces:
public final class PromptAnalyzerCreateResponse.BuilderA builder for PromptAnalyzerCreateResponse.
-
-
Method Summary
-
-
Method Detail
-
categories
final PromptAnalyzerCreateResponse.Builder categories(PromptAnalyzerCreateResponse.Categories categories)
The analysis detection categories
-
categories
final PromptAnalyzerCreateResponse.Builder categories(JsonField<PromptAnalyzerCreateResponse.Categories> categories)
Sets Builder.categories to an arbitrary JSON value.
You should usually call Builder.categories with a well-typed Categories value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
elapsedMs
final PromptAnalyzerCreateResponse.Builder elapsedMs(Double elapsedMs)
The time in milliseconds it took to process the request
-
elapsedMs
final PromptAnalyzerCreateResponse.Builder elapsedMs(JsonField<Double> elapsedMs)
Sets Builder.elapsedMs to an arbitrary JSON value.
You should usually call Builder.elapsedMs with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
frameworks
final PromptAnalyzerCreateResponse.Builder frameworks(PromptAnalyzerCreateResponse.Frameworks frameworks)
The framework labels identified during analysis
-
frameworks
final PromptAnalyzerCreateResponse.Builder frameworks(JsonField<PromptAnalyzerCreateResponse.Frameworks> frameworks)
Sets Builder.frameworks to an arbitrary JSON value.
You should usually call Builder.frameworks with a well-typed Frameworks value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final PromptAnalyzerCreateResponse.Builder model(String model)
-
model
final PromptAnalyzerCreateResponse.Builder model(JsonField<String> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
policy
final PromptAnalyzerCreateResponse.Builder policy(PromptAnalyzerCreateResponse.Policy policy)
The policy used during analysis
-
policy
final PromptAnalyzerCreateResponse.Builder policy(JsonField<PromptAnalyzerCreateResponse.Policy> policy)
Sets Builder.policy to an arbitrary JSON value.
You should usually call Builder.policy with a well-typed Policy value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
provider
final PromptAnalyzerCreateResponse.Builder provider(String provider)
-
provider
final PromptAnalyzerCreateResponse.Builder provider(JsonField<String> provider)
Sets Builder.provider to an arbitrary JSON value.
You should usually call Builder.provider with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
response
final PromptAnalyzerCreateResponse.Builder response(PromptAnalyzerCreateResponse.Response response)
-
response
final PromptAnalyzerCreateResponse.Builder response(JsonField<PromptAnalyzerCreateResponse.Response> response)
Sets Builder.response to an arbitrary JSON value.
You should usually call Builder.response with a well-typed Response value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
results
final PromptAnalyzerCreateResponse.Builder results(PromptAnalyzerCreateResponse.Results results)
The analysis results
-
results
final PromptAnalyzerCreateResponse.Builder results(JsonField<PromptAnalyzerCreateResponse.Results> results)
Sets Builder.results to an arbitrary JSON value.
You should usually call Builder.results with a well-typed Results value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
upstreamElapsedMs
final PromptAnalyzerCreateResponse.Builder upstreamElapsedMs(Double upstreamElapsedMs)
The time in milliseconds the upstream LLM took to process the request
-
upstreamElapsedMs
final PromptAnalyzerCreateResponse.Builder upstreamElapsedMs(JsonField<Double> upstreamElapsedMs)
Sets Builder.upstreamElapsedMs to an arbitrary JSON value.
You should usually call Builder.upstreamElapsedMs with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
verdict
final PromptAnalyzerCreateResponse.Builder verdict(Boolean verdict)
The overall verdict of the analysis
-
verdict
final PromptAnalyzerCreateResponse.Builder verdict(JsonField<Boolean> verdict)
Sets Builder.verdict to an arbitrary JSON value.
You should usually call Builder.verdict with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptAnalyzerCreateResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptAnalyzerCreateResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptAnalyzerCreateResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptAnalyzerCreateResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptAnalyzerCreateResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptAnalyzerCreateResponse build()
Returns an immutable instance of PromptAnalyzerCreateResponse.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-