public sealed class PredictRequestResponseLoggingConfig : IMessage<PredictRequestResponseLoggingConfig>, IEquatable<PredictRequestResponseLoggingConfig>, IDeepCloneable<PredictRequestResponseLoggingConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PredictRequestResponseLoggingConfig.
Configuration for logging request-response to a BigQuery table.
public BigQueryDestination BigqueryDestination { get; set; }
BigQuery table for logging.
If only given a project, a new dataset will be created with name
logging_<endpoint-display-name>_<endpoint-id> where
<endpoint-display-name> will be made BigQuery-dataset-name compatible (e.g.
most special characters will become underscores). If no table name is
given, a new table will be created with name request_response_logging
This field is used for large models. If true, in addition to the
original large model logs, logs will be converted in OTel schema format,
and saved in otel_log column. Default value is false.
public string RequestResponseLoggingSchemaVersion { get; set; }
Output only. The schema version used in creating the BigQuery table for the
request response logging. The versions are "v1" and "v2". The current
default version is "v1".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003ePredictRequestResponseLoggingConfig\u003c/code\u003e class within the Vertex AI v1beta1 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePredictRequestResponseLoggingConfig\u003c/code\u003e class allows users to configure the logging of request-response data to a BigQuery table, offering a way to monitor and audit API interactions.\u003c/p\u003e\n"],["\u003cp\u003eUsers can enable or disable logging, set a sampling rate to control the percentage of requests logged, and specify the destination BigQuery table for the logged data.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors provided, one is parameterless and the other uses another instance of the class.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class PredictRequestResponseLoggingConfig (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PredictRequestResponseLoggingConfig)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.PredictRequestResponseLoggingConfig) \n\n public sealed class PredictRequestResponseLoggingConfig : IMessage\u003cPredictRequestResponseLoggingConfig\u003e, IEquatable\u003cPredictRequestResponseLoggingConfig\u003e, IDeepCloneable\u003cPredictRequestResponseLoggingConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class PredictRequestResponseLoggingConfig.\n\nConfiguration for logging request-response to a BigQuery table. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PredictRequestResponseLoggingConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PredictRequestResponseLoggingConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PredictRequestResponseLoggingConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PredictRequestResponseLoggingConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PredictRequestResponseLoggingConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PredictRequestResponseLoggingConfig](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PredictRequestResponseLoggingConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### PredictRequestResponseLoggingConfig()\n\n public PredictRequestResponseLoggingConfig()\n\n### PredictRequestResponseLoggingConfig(PredictRequestResponseLoggingConfig)\n\n public PredictRequestResponseLoggingConfig(PredictRequestResponseLoggingConfig other)\n\nProperties\n----------\n\n### BigqueryDestination\n\n public BigQueryDestination BigqueryDestination { get; set; }\n\nBigQuery table for logging.\nIf only given a project, a new dataset will be created with name\n`logging_\u003cendpoint-display-name\u003e_\u003cendpoint-id\u003e` where\n\\\u003cendpoint-display-name\\\u003e will be made BigQuery-dataset-name compatible (e.g.\nmost special characters will become underscores). If no table name is\ngiven, a new table will be created with name `request_response_logging`\n\n### EnableOtelLogging\n\n public bool EnableOtelLogging { get; set; }\n\nThis field is used for large models. If true, in addition to the\noriginal large model logs, logs will be converted in OTel schema format,\nand saved in otel_log column. Default value is false.\n\n### Enabled\n\n public bool Enabled { get; set; }\n\nIf logging is enabled or not.\n\n### RequestResponseLoggingSchemaVersion\n\n public string RequestResponseLoggingSchemaVersion { get; set; }\n\nOutput only. The schema version used in creating the BigQuery table for the\nrequest response logging. The versions are \"v1\" and \"v2\". The current\ndefault version is \"v1\".\n\n### SamplingRate\n\n public double SamplingRate { get; set; }\n\nPercentage of requests to be logged, expressed as a fraction in\nrange(0,1\\]."]]