P
- p5() - function in com.google.genai.types.DatasetDistribution
- Output only.
- p5(java.lang.Double) - function in com.google.genai.types.DatasetDistribution.Builder
- Setter for p5.
- p5() - function in com.google.genai.types.SupervisedTuningDatasetDistribution
- Output only.
- p5(java.lang.Double) - function in com.google.genai.types.SupervisedTuningDatasetDistribution.Builder
- Setter for p5.
- p95() - function in com.google.genai.types.DatasetDistribution
- Output only.
- p95(java.lang.Double) - function in com.google.genai.types.DatasetDistribution.Builder
- Setter for p95.
- p95() - function in com.google.genai.types.SupervisedTuningDatasetDistribution
- Output only.
- p95(java.lang.Double) - function in com.google.genai.types.SupervisedTuningDatasetDistribution.Builder
- Setter for p95.
- page() - function in com.google.genai.AsyncPager
- Asynchronously returns the current page of items as a list.
- page() - function in com.google.genai.Pager
- Returns the current page of items as a list.
- Pager - class in com.google.genai
- Pager class for iterating through paginated results.
- pageSize() - function in com.google.genai.AsyncPager
- Asynchronously returns the page size for this pager.
- pageSize() - function in com.google.genai.Pager
- Returns the page size for this pager.
- pageSize() - function in com.google.genai.types.ListBatchJobsConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListBatchJobsConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListCachedContentsConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListCachedContentsConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListDocumentsConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListDocumentsConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListFileSearchStoresConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListFileSearchStoresConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListFilesConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListFilesConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListModelsConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListModelsConfig.Builder
- Setter for pageSize.
- pageSize() - function in com.google.genai.types.ListTuningJobsConfig
- pageSize(java.lang.Integer) - function in com.google.genai.types.ListTuningJobsConfig.Builder
- Setter for pageSize.
- pageSpan() - function in com.google.genai.types.RagChunk
- If populated, represents where the chunk starts and ends in the document.
- pageSpan(com.google.genai.types.RagChunkPageSpan) - function in com.google.genai.types.RagChunk.Builder
- Setter for pageSpan.
- pageSpan(com.google.genai.types.RagChunkPageSpan.Builder) - function in com.google.genai.types.RagChunk.Builder
- Setter for pageSpan builder.
- pageToken() - function in com.google.genai.types.ListBatchJobsConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListBatchJobsConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListCachedContentsConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListCachedContentsConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListDocumentsConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListDocumentsConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListFileSearchStoresConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListFileSearchStoresConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListFilesConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListFilesConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListModelsConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListModelsConfig.Builder
- Setter for pageToken.
- pageToken() - function in com.google.genai.types.ListTuningJobsConfig
- pageToken(java.lang.String) - function in com.google.genai.types.ListTuningJobsConfig.Builder
- Setter for pageToken.
- PAIRWISE_CHOICE_UNSPECIFIED - enum entry in com.google.genai.types.PairwiseChoice.Known
Unspecified prediction choice.
- PairwiseChoice - class in com.google.genai.types
- Output only.
- pairwiseChoice() - function in com.google.genai.types.PairwiseMetricResult
- Output only.
- pairwiseChoice(com.google.genai.types.PairwiseChoice) - function in com.google.genai.types.PairwiseMetricResult.Builder
- Setter for pairwiseChoice.
- pairwiseChoice(com.google.genai.types.PairwiseChoice.Known) - function in com.google.genai.types.PairwiseMetricResult.Builder
- Setter for pairwiseChoice given a known enum.
- pairwiseChoice(java.lang.String) - function in com.google.genai.types.PairwiseMetricResult.Builder
- Setter for pairwiseChoice given a string.
- PairwiseChoice.Known - class in com.google.genai.types.PairwiseChoice
- Enum representing the known values for PairwiseChoice.
- pairwiseMetricResult() - function in com.google.genai.types.AggregationResult
- Result for pairwise metric.
- pairwiseMetricResult(com.google.genai.types.PairwiseMetricResult) - function in com.google.genai.types.AggregationResult.Builder
- Setter for pairwiseMetricResult.
- pairwiseMetricResult(com.google.genai.types.PairwiseMetricResult.Builder) - function in com.google.genai.types.AggregationResult.Builder
- Setter for pairwiseMetricResult builder.
- PairwiseMetricResult - class in com.google.genai.types
- Spec for pairwise metric result.
- PairwiseMetricResult.Builder - class in com.google.genai.types.PairwiseMetricResult
- Builder for PairwiseMetricResult.
- PairwiseMetricSpec - class in com.google.genai.types
- Spec for pairwise metric.
- PairwiseMetricSpec.Builder - class in com.google.genai.types.PairwiseMetricSpec
- Builder for PairwiseMetricSpec.
- parallelAiSearch() - function in com.google.genai.types.Tool
- Optional.
- parallelAiSearch(com.google.genai.types.ToolParallelAiSearch) - function in com.google.genai.types.Tool.Builder
- Setter for parallelAiSearch.
- parallelAiSearch(com.google.genai.types.ToolParallelAiSearch.Builder) - function in com.google.genai.types.Tool.Builder
- Setter for parallelAiSearch builder.
- parameterNames() - function in com.google.genai.types.TestTableFile
- parameterNames(kotlin.Array) - function in com.google.genai.types.TestTableFile.Builder
- Setter for parameterNames.
- parameterNames(java.util.List) - function in com.google.genai.types.TestTableFile.Builder
- Setter for parameterNames.
- parameters() - function in com.google.genai.types.ComputationBasedMetricSpec
- A map of parameters for the metric.
- parameters(java.util.Map) - function in com.google.genai.types.ComputationBasedMetricSpec.Builder
- Setter for parameters.
- parameters() - function in com.google.genai.types.FunctionDeclaration
- Optional.
- parameters(com.google.genai.types.Schema) - function in com.google.genai.types.FunctionDeclaration.Builder
- Setter for parameters.
- parameters(com.google.genai.types.Schema.Builder) - function in com.google.genai.types.FunctionDeclaration.Builder
- Setter for parameters builder.
- parameters() - function in com.google.genai.types.TestTableItem
- The parameters to the test.
- parameters(java.util.Map) - function in com.google.genai.types.TestTableItem.Builder
- Setter for parameters.
- parametersJsonSchema() - function in com.google.genai.types.FunctionDeclaration
- Optional.
- parametersJsonSchema(Object) - function in com.google.genai.types.FunctionDeclaration.Builder
- Setter for parametersJsonSchema.
- parent() - function in com.google.genai.types.ImportFileResponse
- The name of the FileSearchStore containing Documents.
- parent(java.lang.String) - function in com.google.genai.types.ImportFileResponse.Builder
- Setter for parent.
- parent() - function in com.google.genai.types.ListDocumentsParameters
- The resource name of the FileSearchStores.
- parent(java.lang.String) - function in com.google.genai.types.ListDocumentsParameters.Builder
- Setter for parent.
- parent() - function in com.google.genai.types.UploadToFileSearchStoreResponse
- The name of the FileSearchStore containing Documents.
- parent(java.lang.String) - function in com.google.genai.types.UploadToFileSearchStoreResponse.Builder
- Setter for parent.
- Part - class in com.google.genai.types
- A datatype containing media content.
- Part.Builder - class in com.google.genai.types.Part
- Builder for Part.
- PART_MEDIA_RESOLUTION_LEVEL_UNSPECIFIED - enum entry in com.google.genai.types.PartMediaResolutionLevel.Known
- PartialArg - class in com.google.genai.types
- Partial argument value of the function call.
- PartialArg.Builder - class in com.google.genai.types.PartialArg
- Builder for PartialArg.
- partialArgs() - function in com.google.genai.types.FunctionCall
- Optional.
- partialArgs(kotlin.Array) - function in com.google.genai.types.FunctionCall.Builder
- Setter for partialArgs.
- partialArgs(kotlin.Array) - function in com.google.genai.types.FunctionCall.Builder
- Setter for partialArgs builder.
- partialArgs(java.util.List) - function in com.google.genai.types.FunctionCall.Builder
- Setter for partialArgs.
- partIndex() - function in com.google.genai.types.Segment
- Output only.
- partIndex(java.lang.Integer) - function in com.google.genai.types.Segment.Builder
- Setter for partIndex.
- PartMediaResolution - class in com.google.genai.types
- Media resolution for the input media.
- PartMediaResolution.Builder - class in com.google.genai.types.PartMediaResolution
- Builder for PartMediaResolution.
- PartMediaResolutionLevel - class in com.google.genai.types
- The tokenization quality used for given media.
- PartMediaResolutionLevel.Known - class in com.google.genai.types.PartMediaResolutionLevel
- Enum representing the known values for PartMediaResolutionLevel.
- partMetadata() - function in com.google.genai.types.Part
- Custom metadata associated with the Part.
- partMetadata(java.util.Map) - function in com.google.genai.types.Part.Builder
- Setter for partMetadata.
- PartnerModelTuningSpec - class in com.google.genai.types
- Tuning spec for Partner models.
- partnerModelTuningSpec() - function in com.google.genai.types.TuningJob
- Tuning Spec for open sourced and third party Partner models.
- partnerModelTuningSpec(com.google.genai.types.PartnerModelTuningSpec) - function in com.google.genai.types.TuningJob.Builder
- Setter for partnerModelTuningSpec.
- partnerModelTuningSpec(com.google.genai.types.PartnerModelTuningSpec.Builder) - function in com.google.genai.types.TuningJob.Builder
- Setter for partnerModelTuningSpec builder.
- PartnerModelTuningSpec.Builder - class in com.google.genai.types.PartnerModelTuningSpec
- Builder for PartnerModelTuningSpec.
- parts() - function in com.google.genai.types.Content
- List of parts that constitute a single message.
- parts(kotlin.Array) - function in com.google.genai.types.Content.Builder
- Setter for parts.
- parts(kotlin.Array) - function in com.google.genai.types.Content.Builder
- Setter for parts builder.
- parts(java.util.List) - function in com.google.genai.types.Content.Builder
- Setter for parts.
- parts() - function in com.google.genai.types.FunctionResponse
- List of parts that constitute a function response.
- parts(kotlin.Array) - function in com.google.genai.types.FunctionResponse.Builder
- Setter for parts.
- parts(kotlin.Array) - function in com.google.genai.types.FunctionResponse.Builder
- Setter for parts builder.
- parts(java.util.List) - function in com.google.genai.types.FunctionResponse.Builder
- Setter for parts.
- parts() - function in com.google.genai.types.GenerateContentResponse
- Returns the list of parts in the first candidate of the response.
- password() - function in com.google.genai.types.ProxyOptions
- Password for proxy authentication.
- password(java.lang.String) - function in com.google.genai.types.ProxyOptions.Builder
- Setter for password.
- path() - function in com.google.genai.Common.BuiltRequest
- pattern() - function in com.google.genai.types.Schema
- Optional.
- pattern(java.lang.String) - function in com.google.genai.types.Schema.Builder
- Setter for pattern.
- pendingDocumentsCount() - function in com.google.genai.types.FileSearchStore
- The number of documents in the FileSearchStore that are being processed.
- pendingDocumentsCount(java.lang.Long) - function in com.google.genai.types.FileSearchStore.Builder
- Setter for pendingDocumentsCount.
- PERCENTILE_P90 - enum entry in com.google.genai.types.AggregationMetric.Known
90th percentile aggregation metric. Not supported for pairwise metric.
- PERCENTILE_P95 - enum entry in com.google.genai.types.AggregationMetric.Known
95th percentile aggregation metric. Not supported for pairwise metric.
- PERCENTILE_P99 - enum entry in com.google.genai.types.AggregationMetric.Known
99th percentile aggregation metric. Not supported for pairwise metric.
- PERSON_GENERATION_UNSPECIFIED - enum entry in com.google.genai.types.PersonGeneration.Known
- personGeneration() - function in com.google.genai.types.EditImageConfig
- Allows generation of people by the model.
- personGeneration(com.google.genai.types.PersonGeneration) - function in com.google.genai.types.EditImageConfig.Builder
- Setter for personGeneration.
- personGeneration(com.google.genai.types.PersonGeneration.Known) - function in com.google.genai.types.EditImageConfig.Builder
- Setter for personGeneration given a known enum.
- personGeneration(java.lang.String) - function in com.google.genai.types.EditImageConfig.Builder
- Setter for personGeneration given a string.
- personGeneration() - function in com.google.genai.types.GenerateImagesConfig
- Allows generation of people by the model.
- personGeneration(com.google.genai.types.PersonGeneration) - function in com.google.genai.types.GenerateImagesConfig.Builder
- Setter for personGeneration.
- personGeneration(com.google.genai.types.PersonGeneration.Known) - function in com.google.genai.types.GenerateImagesConfig.Builder
- Setter for personGeneration given a known enum.
- personGeneration(java.lang.String) - function in com.google.genai.types.GenerateImagesConfig.Builder
- Setter for personGeneration given a string.
- personGeneration() - function in com.google.genai.types.GenerateVideosConfig
- Whether allow to generate person videos, and restrict to specific ages.
- personGeneration(java.lang.String) - function in com.google.genai.types.GenerateVideosConfig.Builder
- Setter for personGeneration.
- personGeneration() - function in com.google.genai.types.ImageConfig
- Controls the generation of people.
- personGeneration(java.lang.String) - function in com.google.genai.types.ImageConfig.Builder
- Setter for personGeneration.
- PersonGeneration - class in com.google.genai.types
- Enum that controls the generation of people.
- personGeneration() - function in com.google.genai.types.RecontextImageConfig
- Whether allow to generate person images, and restrict to specific ages.
- personGeneration(com.google.genai.types.PersonGeneration) - function in com.google.genai.types.RecontextImageConfig.Builder
- Setter for personGeneration.
- personGeneration(com.google.genai.types.PersonGeneration.Known) - function in com.google.genai.types.RecontextImageConfig.Builder
- Setter for personGeneration given a known enum.
- personGeneration(java.lang.String) - function in com.google.genai.types.RecontextImageConfig.Builder
- Setter for personGeneration given a string.
- personGeneration() - function in com.google.genai.types.UpscaleImageAPIConfig
- Allows generation of people by the model.
- personGeneration(com.google.genai.types.PersonGeneration) - function in com.google.genai.types.UpscaleImageAPIConfig.Builder
- Setter for personGeneration.
- personGeneration(com.google.genai.types.PersonGeneration.Known) - function in com.google.genai.types.UpscaleImageAPIConfig.Builder
- Setter for personGeneration given a known enum.
- personGeneration(java.lang.String) - function in com.google.genai.types.UpscaleImageAPIConfig.Builder
- Setter for personGeneration given a string.
- personGeneration() - function in com.google.genai.types.UpscaleImageConfig
- Allows generation of people by the model.
- personGeneration(com.google.genai.types.PersonGeneration) - function in com.google.genai.types.UpscaleImageConfig.Builder
- Setter for personGeneration.
- personGeneration(com.google.genai.types.PersonGeneration.Known) - function in com.google.genai.types.UpscaleImageConfig.Builder
- Setter for personGeneration given a known enum.
- personGeneration(java.lang.String) - function in com.google.genai.types.UpscaleImageConfig.Builder
- Setter for personGeneration given a string.
- PersonGeneration.Known - class in com.google.genai.types.PersonGeneration
- Enum representing the known values for PersonGeneration.
- personImage() - function in com.google.genai.types.RecontextImageSource
- Image of the person or subject who will be wearing the product(s).
- personImage(com.google.genai.types.Image) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for personImage.
- personImage(com.google.genai.types.Image.Builder) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for personImage builder.
- PHISH_BLOCK_THRESHOLD_UNSPECIFIED - enum entry in com.google.genai.types.PhishBlockThreshold.Known
Defaults to unspecified.
- PhishBlockThreshold - class in com.google.genai.types
- Sites with confidence level chosen &above this value will be blocked from the search results.
- PhishBlockThreshold.Known - class in com.google.genai.types.PhishBlockThreshold
- Enum representing the known values for PhishBlockThreshold.
- photoUri() - function in com.google.genai.types.GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution
- Profile photo URI of the author of the Photo or Review.
- photoUri(java.lang.String) - function in com.google.genai.types.GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution.Builder
- Setter for photoUri.
- pipelineJob() - function in com.google.genai.types.TuningJob
- Output only.
- pipelineJob(java.lang.String) - function in com.google.genai.types.TuningJob.Builder
- Setter for pipelineJob.
- pipelineRootDirectory() - function in com.google.genai.types.DistillationSpec
- Deprecated.
- pipelineRootDirectory(java.lang.String) - function in com.google.genai.types.DistillationSpec.Builder
- Setter for pipelineRootDirectory.
- placeAnswerSources() - function in com.google.genai.types.GroundingChunkMaps
- The sources that were used to generate the place answer.
- placeAnswerSources(com.google.genai.types.GroundingChunkMapsPlaceAnswerSources) - function in com.google.genai.types.GroundingChunkMaps.Builder
- Setter for placeAnswerSources.
- placeAnswerSources(com.google.genai.types.GroundingChunkMapsPlaceAnswerSources.Builder) - function in com.google.genai.types.GroundingChunkMaps.Builder
- Setter for placeAnswerSources builder.
- placeId() - function in com.google.genai.types.GroundingChunkMaps
- This Place's resource name, in `places/{place_id}` format.
- placeId(java.lang.String) - function in com.google.genai.types.GroundingChunkMaps.Builder
- Setter for placeId.
- pointwiseMetricResult() - function in com.google.genai.types.AggregationResult
- Result for pointwise metric.
- pointwiseMetricResult(com.google.genai.types.PointwiseMetricResult) - function in com.google.genai.types.AggregationResult.Builder
- Setter for pointwiseMetricResult.
- pointwiseMetricResult(com.google.genai.types.PointwiseMetricResult.Builder) - function in com.google.genai.types.AggregationResult.Builder
- Setter for pointwiseMetricResult builder.
- PointwiseMetricResult - class in com.google.genai.types
- Spec for pointwise metric result.
- PointwiseMetricResult.Builder - class in com.google.genai.types.PointwiseMetricResult
- Builder for PointwiseMetricResult.
- PointwiseMetricSpec - class in com.google.genai.types
- Spec for pointwise metric.
- pointwiseMetricSpec() - function in com.google.genai.types.UnifiedMetric
- The pointwise metric spec.
- pointwiseMetricSpec(com.google.genai.types.PointwiseMetricSpec) - function in com.google.genai.types.UnifiedMetric.Builder
- Setter for pointwiseMetricSpec.
- pointwiseMetricSpec(com.google.genai.types.PointwiseMetricSpec.Builder) - function in com.google.genai.types.UnifiedMetric.Builder
- Setter for pointwiseMetricSpec builder.
- PointwiseMetricSpec.Builder - class in com.google.genai.types.PointwiseMetricSpec
- Builder for PointwiseMetricSpec.
- port() - function in com.google.genai.types.ProxyOptions
- Proxy server port.
- port(java.lang.Integer) - function in com.google.genai.types.ProxyOptions.Builder
- Setter for port.
- positivePromptSafetyAttributes() - function in com.google.genai.types.GenerateImagesResponse
- Safety attributes of the positive prompt.
- positivePromptSafetyAttributes(com.google.genai.types.SafetyAttributes) - function in com.google.genai.types.GenerateImagesResponse.Builder
- Setter for positivePromptSafetyAttributes.
- positivePromptSafetyAttributes(com.google.genai.types.SafetyAttributes.Builder) - function in com.google.genai.types.GenerateImagesResponse.Builder
- Setter for positivePromptSafetyAttributes builder.
- PrebuiltVoiceConfig - class in com.google.genai.types
- Configuration for a prebuilt voice.
- prebuiltVoiceConfig() - function in com.google.genai.types.VoiceConfig
- The configuration for a prebuilt voice.
- prebuiltVoiceConfig(com.google.genai.types.PrebuiltVoiceConfig) - function in com.google.genai.types.VoiceConfig.Builder
- Setter for prebuiltVoiceConfig.
- prebuiltVoiceConfig(com.google.genai.types.PrebuiltVoiceConfig.Builder) - function in com.google.genai.types.VoiceConfig.Builder
- Setter for prebuiltVoiceConfig builder.
- PrebuiltVoiceConfig.Builder - class in com.google.genai.types.PrebuiltVoiceConfig
- Builder for PrebuiltVoiceConfig.
- PredefinedMetricSpec - class in com.google.genai.types
- The spec for a pre-defined metric.
- predefinedMetricSpec() - function in com.google.genai.types.UnifiedMetric
- The spec for a pre-defined metric.
- predefinedMetricSpec(com.google.genai.types.PredefinedMetricSpec) - function in com.google.genai.types.UnifiedMetric.Builder
- Setter for predefinedMetricSpec.
- predefinedMetricSpec(com.google.genai.types.PredefinedMetricSpec.Builder) - function in com.google.genai.types.UnifiedMetric.Builder
- Setter for predefinedMetricSpec builder.
- PredefinedMetricSpec.Builder - class in com.google.genai.types.PredefinedMetricSpec
- Builder for PredefinedMetricSpec.
- predefinedRubricGenerationSpec() - function in com.google.genai.types.LLMBasedMetricSpec
- Dynamically generate rubrics using a predefined spec.
- predefinedRubricGenerationSpec(com.google.genai.types.PredefinedMetricSpec) - function in com.google.genai.types.LLMBasedMetricSpec.Builder
- Setter for predefinedRubricGenerationSpec.
- predefinedRubricGenerationSpec(com.google.genai.types.PredefinedMetricSpec.Builder) - function in com.google.genai.types.LLMBasedMetricSpec.Builder
- Setter for predefinedRubricGenerationSpec builder.
- PREDICT - enum entry in com.google.genai.types.EmbeddingApiType.Known
predict API endpoint (default)
- PREFERENCE_TUNING - enum entry in com.google.genai.types.TuningMethod.Known
Preference optimization tuning.
- PreferenceOptimizationDataStats - class in com.google.genai.types
- Statistics computed for datasets used for preference optimization.
- preferenceOptimizationDataStats() - function in com.google.genai.types.TuningDataStats
- Output only.
- preferenceOptimizationDataStats(com.google.genai.types.PreferenceOptimizationDataStats) - function in com.google.genai.types.TuningDataStats.Builder
- Setter for preferenceOptimizationDataStats.
- preferenceOptimizationDataStats(com.google.genai.types.PreferenceOptimizationDataStats.Builder) - function in com.google.genai.types.TuningDataStats.Builder
- Setter for preferenceOptimizationDataStats builder.
- PreferenceOptimizationDataStats.Builder - class in com.google.genai.types.PreferenceOptimizationDataStats
- Builder for PreferenceOptimizationDataStats.
- PreferenceOptimizationHyperParameters - class in com.google.genai.types
- Hyperparameters for Preference Optimization.
- PreferenceOptimizationHyperParameters.Builder - class in com.google.genai.types.PreferenceOptimizationHyperParameters
- Builder for PreferenceOptimizationHyperParameters.
- PreferenceOptimizationSpec - class in com.google.genai.types
- Preference optimization tuning spec for tuning.
- preferenceOptimizationSpec() - function in com.google.genai.types.TuningJob
- Tuning Spec for Preference Optimization.
- preferenceOptimizationSpec(com.google.genai.types.PreferenceOptimizationSpec) - function in com.google.genai.types.TuningJob.Builder
- Setter for preferenceOptimizationSpec.
- preferenceOptimizationSpec(com.google.genai.types.PreferenceOptimizationSpec.Builder) - function in com.google.genai.types.TuningJob.Builder
- Setter for preferenceOptimizationSpec builder.
- PreferenceOptimizationSpec.Builder - class in com.google.genai.types.PreferenceOptimizationSpec
- Builder for PreferenceOptimizationSpec.
- prefixPaddingMs() - function in com.google.genai.types.AutomaticActivityDetection
- The required duration of detected speech before start-of-speech is committed.
- prefixPaddingMs(java.lang.Integer) - function in com.google.genai.types.AutomaticActivityDetection.Builder
- Setter for prefixPaddingMs.
- presencePenalty() - function in com.google.genai.types.GenerateContentConfig
- Positive values penalize tokens that already appear in the generated text, increasing the probability of generating more diverse content.
- presencePenalty(java.lang.Float) - function in com.google.genai.types.GenerateContentConfig.Builder
- Setter for presencePenalty.
- presencePenalty() - function in com.google.genai.types.GenerationConfig
- Optional.
- presencePenalty(java.lang.Float) - function in com.google.genai.types.GenerationConfig.Builder
- Setter for presencePenalty.
- preTunedModel() - function in com.google.genai.types.CreateTuningJobParametersPrivate
- The PreTunedModel that is being tuned.
- preTunedModel(com.google.genai.types.PreTunedModel) - function in com.google.genai.types.CreateTuningJobParametersPrivate.Builder
- Setter for preTunedModel.
- preTunedModel(com.google.genai.types.PreTunedModel.Builder) - function in com.google.genai.types.CreateTuningJobParametersPrivate.Builder
- Setter for preTunedModel builder.
- PreTunedModel - class in com.google.genai.types
- A pre-tuned model for continuous tuning.
- preTunedModel() - function in com.google.genai.types.TuningJob
- The pre-tuned model for continuous tuning.
- preTunedModel(com.google.genai.types.PreTunedModel) - function in com.google.genai.types.TuningJob.Builder
- Setter for preTunedModel.
- preTunedModel(com.google.genai.types.PreTunedModel.Builder) - function in com.google.genai.types.TuningJob.Builder
- Setter for preTunedModel builder.
- PreTunedModel.Builder - class in com.google.genai.types.PreTunedModel
- Builder for PreTunedModel.
- preTunedModelCheckpointId() - function in com.google.genai.types.CreateTuningJobConfig
- The optional checkpoint id of the pre-tuned model to use for tuning, if applicable.
- preTunedModelCheckpointId(java.lang.String) - function in com.google.genai.types.CreateTuningJobConfig.Builder
- Setter for preTunedModelCheckpointId.
- PREVIEW - enum entry in com.google.genai.types.ModelStage.Known
Models in this stage are more mature than experimental models.
- printStackTrace() - function in java.lang.Throwable
- PRIORITIZE_COST - enum entry in com.google.genai.types.FeatureSelectionPreference.Known
- PRIORITIZE_COST - enum entry in com.google.genai.types.ModelRoutingPreference.Known
- PRIORITIZE_QUALITY - enum entry in com.google.genai.types.FeatureSelectionPreference.Known
- PRIORITIZE_QUALITY - enum entry in com.google.genai.types.ModelRoutingPreference.Known
- PRIORITY - enum entry in com.google.genai.types.ServiceTier.Known
Priority service tier.
- proactiveAudio() - function in com.google.genai.types.ProactivityConfig
- If enabled, the model can reject responding to the last prompt.
- proactiveAudio(boolean) - function in com.google.genai.types.ProactivityConfig.Builder
- Setter for proactiveAudio.
- proactivity() - function in com.google.genai.types.LiveClientSetup
- Configures the proactivity of the model.
- proactivity(com.google.genai.types.ProactivityConfig) - function in com.google.genai.types.LiveClientSetup.Builder
- Setter for proactivity.
- proactivity(com.google.genai.types.ProactivityConfig.Builder) - function in com.google.genai.types.LiveClientSetup.Builder
- Setter for proactivity builder.
- proactivity() - function in com.google.genai.types.LiveConnectConfig
- Configures the proactivity of the model.
- proactivity(com.google.genai.types.ProactivityConfig) - function in com.google.genai.types.LiveConnectConfig.Builder
- Setter for proactivity.
- proactivity(com.google.genai.types.ProactivityConfig.Builder) - function in com.google.genai.types.LiveConnectConfig.Builder
- Setter for proactivity builder.
- ProactivityConfig - class in com.google.genai.types
- Config for proactivity features.
- ProactivityConfig.Builder - class in com.google.genai.types.ProactivityConfig
- Builder for ProactivityConfig.
- PROBABILITY - enum entry in com.google.genai.types.HarmBlockMethod.Known
The harm block method uses the probability score.
- probability() - function in com.google.genai.types.SafetyRating
- Output only.
- probability(com.google.genai.types.HarmProbability) - function in com.google.genai.types.SafetyRating.Builder
- Setter for probability.
- probability(com.google.genai.types.HarmProbability.Known) - function in com.google.genai.types.SafetyRating.Builder
- Setter for probability given a known enum.
- probability(java.lang.String) - function in com.google.genai.types.SafetyRating.Builder
- Setter for probability given a string.
- probabilityScore() - function in com.google.genai.types.SafetyRating
- Output only.
- probabilityScore(java.lang.Float) - function in com.google.genai.types.SafetyRating.Builder
- Setter for probabilityScore.
- PROCESSING - enum entry in com.google.genai.types.FileState.Known
- ProductImage - class in com.google.genai.types
- An image of the product.
- productImage() - function in com.google.genai.types.ProductImage
- An image of the product to be recontextualized.
- productImage(com.google.genai.types.Image) - function in com.google.genai.types.ProductImage.Builder
- Setter for productImage.
- productImage(com.google.genai.types.Image.Builder) - function in com.google.genai.types.ProductImage.Builder
- Setter for productImage builder.
- ProductImage.Builder - class in com.google.genai.types.ProductImage
- Builder for ProductImage.
- productImages() - function in com.google.genai.types.RecontextImageSource
- A list of product images.
- productImages(kotlin.Array) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for productImages.
- productImages(kotlin.Array) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for productImages builder.
- productImages(java.util.List) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for productImages.
- PROHIBITED_CONTENT - enum entry in com.google.genai.types.BlockedReason.Known
The prompt was blocked because it contains prohibited content.
- PROHIBITED_CONTENT - enum entry in com.google.genai.types.FinishReason.Known
Token generation stopped for potentially containing prohibited content.
- PROHIBITED_INPUT_CONTENT - enum entry in com.google.genai.types.TurnCompleteReason.Known
Input content is prohibited.
- project() - function in com.google.genai.ApiClient
- Returns the project ID for Vertex AI APIs.
- project() - function in com.google.genai.ApiClient
- Returns the project ID for Vertex AI APIs.
- project() - function in com.google.genai.Client
- Returns the project ID for Vertex AI APIs.
- project(java.lang.String) - function in com.google.genai.Client.Builder
- Sets the project ID for Vertex AI APIs.
- PROMINENT_PEOPLE_UNSPECIFIED - enum entry in com.google.genai.types.ProminentPeople.Known
Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people.
- prominentPeople() - function in com.google.genai.types.ImageConfig
- Optional.
- prominentPeople(com.google.genai.types.ProminentPeople) - function in com.google.genai.types.ImageConfig.Builder
- Setter for prominentPeople.
- prominentPeople(com.google.genai.types.ProminentPeople.Known) - function in com.google.genai.types.ImageConfig.Builder
- Setter for prominentPeople given a known enum.
- prominentPeople(java.lang.String) - function in com.google.genai.types.ImageConfig.Builder
- Setter for prominentPeople given a string.
- ProminentPeople - class in com.google.genai.types
- Controls whether prominent people (celebrities) generation is allowed.
- ProminentPeople.Known - class in com.google.genai.types.ProminentPeople
- Enum representing the known values for ProminentPeople.
- prompt() - function in com.google.genai.types.EditImageParameters
- A text description of the edit to apply to the image.
- prompt(java.lang.String) - function in com.google.genai.types.EditImageParameters.Builder
- Setter for prompt.
- prompt() - function in com.google.genai.types.GenerateImagesParameters
- Text prompt that typically describes the images to output.
- prompt(java.lang.String) - function in com.google.genai.types.GenerateImagesParameters.Builder
- Setter for prompt.
- prompt() - function in com.google.genai.types.GenerateVideosParameters
- The text prompt for generating the videos.
- prompt(java.lang.String) - function in com.google.genai.types.GenerateVideosParameters.Builder
- Setter for prompt.
- prompt() - function in com.google.genai.types.GenerateVideosSource
- The text prompt for generating the videos.
- prompt(java.lang.String) - function in com.google.genai.types.GenerateVideosSource.Builder
- Setter for prompt.
- prompt() - function in com.google.genai.types.RecontextImageSource
- A text prompt for guiding the model during image recontextualization.
- prompt(java.lang.String) - function in com.google.genai.types.RecontextImageSource.Builder
- Setter for prompt.
- prompt() - function in com.google.genai.types.SegmentImageSource
- A text prompt for guiding the model during image segmentation.
- prompt(java.lang.String) - function in com.google.genai.types.SegmentImageSource.Builder
- Setter for prompt.
- PROMPT - enum entry in com.google.genai.types.SegmentMode.Known
- promptDatasetUri() - function in com.google.genai.types.DistillationSpec
- The GCS URI of the prompt dataset to use during distillation.
- promptDatasetUri(java.lang.String) - function in com.google.genai.types.DistillationSpec.Builder
- Setter for promptDatasetUri.
- promptFeedback() - function in com.google.genai.types.GenerateContentResponse
- Output only.
- promptFeedback(com.google.genai.types.GenerateContentResponsePromptFeedback) - function in com.google.genai.types.GenerateContentResponse.Builder
- Setter for promptFeedback.
- promptFeedback(com.google.genai.types.GenerateContentResponsePromptFeedback.Builder) - function in com.google.genai.types.GenerateContentResponse.Builder
- Setter for promptFeedback builder.
- promptTemplate() - function in com.google.genai.types.Metric
- The prompt template for the metric.
- promptTemplate(java.lang.String) - function in com.google.genai.types.Metric.Builder
- Setter for promptTemplate.
- promptTemplate() - function in com.google.genai.types.RubricGenerationSpec
- Template for the prompt used to generate rubrics.
- promptTemplate(java.lang.String) - function in com.google.genai.types.RubricGenerationSpec.Builder
- Setter for promptTemplate.
- promptTemplateName() - function in com.google.genai.types.ModelArmorConfig
- Optional.
- promptTemplateName(java.lang.String) - function in com.google.genai.types.ModelArmorConfig.Builder
- Setter for promptTemplateName.
- promptTokenCount() - function in com.google.genai.types.GenerateContentResponseUsageMetadata
- The total number of tokens in the prompt.
- promptTokenCount(java.lang.Integer) - function in com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
- Setter for promptTokenCount.
- promptTokenCount() - function in com.google.genai.types.UsageMetadata
- Number of tokens in the prompt.
- promptTokenCount(java.lang.Integer) - function in com.google.genai.types.UsageMetadata.Builder
- Setter for promptTokenCount.
- promptTokensDetails() - function in com.google.genai.types.GenerateContentResponseUsageMetadata
- Output only.
- promptTokensDetails(kotlin.Array) - function in com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
- Setter for promptTokensDetails.
- promptTokensDetails(kotlin.Array) - function in com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
- Setter for promptTokensDetails builder.
- promptTokensDetails(java.util.List) - function in com.google.genai.types.GenerateContentResponseUsageMetadata.Builder
- Setter for promptTokensDetails.
- promptTokensDetails() - function in com.google.genai.types.UsageMetadata
- List of modalities that were processed in the request input.
- promptTokensDetails(kotlin.Array) - function in com.google.genai.types.UsageMetadata.Builder
- Setter for promptTokensDetails.
- promptTokensDetails(kotlin.Array) - function in com.google.genai.types.UsageMetadata.Builder
- Setter for promptTokensDetails builder.
- promptTokensDetails(java.util.List) - function in com.google.genai.types.UsageMetadata.Builder
- Setter for promptTokensDetails.
- properties() - function in com.google.genai.types.Schema
- Optional.
- properties(java.util.Map) - function in com.google.genai.types.Schema.Builder
- Setter for properties.
- PROPERTY - enum entry in com.google.genai.types.RubricContentType.Known
Generate rubrics based on properties.
- propertyOrdering() - function in com.google.genai.types.Schema
- Optional.
- propertyOrdering(kotlin.Array) - function in com.google.genai.types.Schema.Builder
- Setter for propertyOrdering.
- propertyOrdering(java.util.List) - function in com.google.genai.types.Schema.Builder
- Setter for propertyOrdering.
- PROVISIONED_THROUGHPUT - enum entry in com.google.genai.types.TrafficType.Known
Type for Provisioned Throughput traffic.
- PROXY_TYPE_UNSPECIFIED - enum entry in com.google.genai.types.ProxyType.Known
- proxyOptions() - function in com.google.genai.types.ClientOptions
- Proxy configuration to be used in the client.
- proxyOptions(com.google.genai.types.ProxyOptions) - function in com.google.genai.types.ClientOptions.Builder
- Setter for proxyOptions.
- proxyOptions(com.google.genai.types.ProxyOptions.Builder) - function in com.google.genai.types.ClientOptions.Builder
- Setter for proxyOptions builder.
- ProxyOptions - class in com.google.genai.types
- Proxy configuration for the client.
- ProxyOptions.Builder - class in com.google.genai.types.ProxyOptions
- Builder for ProxyOptions.
- ProxyType - class in com.google.genai.types
- Specifies the type of proxy to use for network connections.
- ProxyType.Known - class in com.google.genai.types.ProxyType
- Enum representing the known values for ProxyType.
- PT - enum entry in com.google.genai.types.ImagePromptLanguage.Known
Portuguese
- publicationDate() - function in com.google.genai.types.Citation
- Output only.
- publicationDate(com.google.genai.types.GoogleTypeDate) - function in com.google.genai.types.Citation.Builder
- Setter for publicationDate.
- publicationDate(com.google.genai.types.GoogleTypeDate.Builder) - function in com.google.genai.types.Citation.Builder
- Setter for publicationDate builder.
- pubsubTopic() - function in com.google.genai.types.GenerateVideosConfig
- The pubsub topic where to publish the video generation progress.
- pubsubTopic(java.lang.String) - function in com.google.genai.types.GenerateVideosConfig.Builder
- Setter for pubsubTopic.
- PYTHON - enum entry in com.google.genai.types.Language.Known
Python >= 3.10, with numpy and simpy available.
- PYTHON_CODE_ASSERTION - enum entry in com.google.genai.types.RubricContentType.Known
Generate rubrics in a unit test format.