# Configuration for the protoveneer tool. package: genai protoImportPath: cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb types: HarmCategory: protoPrefix: HarmCategory_HARM_CATEGORY_ docVerb: specifies SafetySetting_HarmBlockThreshold: name: HarmBlockThreshold protoPrefix: SafetySetting_BLOCK_ veneerPrefix: HarmBlock docVerb: specifies valueNames: SafetySetting_HARM_BLOCK_THRESHOLD_UNSPECIFIED: HarmBlockUnspecified SafetySetting_HarmBlockMethod: name: HarmBlockMethod protoPrefix: SafetySetting_ veneerPrefix: HarmBlockMethod doc: 'determines how harm blocking is done.' SafetyRating_HarmProbability: name: HarmProbability protoPrefix: SafetyRating_ docVerb: specifies valueNames: SafetyRating_HARM_PROBABILITY_UNSPECIFIED: HarmProbabilityUnspecified SafetyRating_HarmSeverity: name: HarmSeverity protoPrefix: SafetyRating_ docVerb: specifies Candidate_FinishReason: name: FinishReason protoPrefix: Candidate_ GenerateContentResponse_PromptFeedback_BlockedReason: name: BlockedReason protoPrefix: GenerateContentResponse_PromptFeedback_ Type: protoPrefix: Type_ Content: fields: Parts: type: '[]Part' Blob: fields: MimeType: name: MIMEType doc: 'contains binary data like images. Use [Text] for text.' removeOtherDoc: true FileData: fields: MimeType: name: MIMEType FileUri: name: FileURI FunctionCall: fields: Id: omit: true FunctionResponse: fields: Id: omit: true FunctionCallingConfig: doc: 'holds configuration for function calling.' FunctionCallingConfig_Mode: name: FunctionCallingMode protoPrefix: FunctionCallingConfig veneerPrefix: FunctionCalling valueNames: FunctionCallingConfig_MODE_UNSPECIFIED: FunctionCallingUnspecified GenerationConfig: fields: TopK: type: '*int32' convertToFrom: int32pToFloat32p, float32pToInt32p ResponseMimeType: name: ResponseMIMEType ResponseLogprobs: omit: true Logprobs: omit: true Seed: omit: true ResponseJsonSchema: omit: true RoutingConfig: omit: true AudioTimestamp: omit: true ResponseModalities: omit: true MediaResolution: omit: true SpeechConfig: omit: true ModelConfig: omit: true GenerationConfig_ThinkingConfig: name: ThinkingConfig SafetyRating: docVerb: 'is the' Citation: docVerb: contains fields: Uri: name: URI Candidate: fields: FinishMessage: type: string GroundingMetadata: omit: true AvgLogprobs: omit: true LogprobsResult: omit: true UrlContextMetadata: omit: true GenerateContentResponse: doc: 'is the response from a GenerateContent or GenerateContentStream call.' fields: ModelVersion: omit: true CreateTime: omit: true ResponseId: omit: true GenerateContentResponse_PromptFeedback: name: PromptFeedback docVerb: contains GenerateContentResponse_UsageMetadata: name: UsageMetadata fields: CachedContentTokenCount: omit: true PromptTokensDetails: omit: true CacheTokensDetails: omit: true CandidatesTokensDetails: omit: true CountTokensResponse: fields: PromptTokensDetails: omit: true Tool: docVerb: contains fields: Retrieval: omit: true GoogleSearchRetrieval: omit: true GoogleSearch: omit: true EnterpriseWebSearch: omit: true CodeExecution: omit: true UrlContext: omit: true ToolConfig: doc: 'configures tools.' fields: RetrievalConfig: omit: true Schema: fields: Example: omit: true Default: # TODO(jba): protoveneer should treat a *structpb.Value as an any omit: true PropertyOrdering: omit: true AnyOf: omit: true AdditionalProperties: omit: true Ref: omit: true Defs: omit: true CitationMetadata: FunctionDeclaration: fields: ParametersJsonSchema: omit: true ResponseJsonSchema: omit: true SafetySetting: CachedContent: populateToFrom: populateCachedContentTo, populateCachedContentFrom fields: Expiration: type: ExpireTimeOrTTL noConvert: true DisplayName: omit: true UsageMetadata: omit: true EncryptionSpec: omit: true # Omit everything that is not explicitly configured. omitTypes: - '*' converters: Part: partToProto, partFromProto