Class PredictRequestResponseLoggingConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.Builder
All Implemented Interfaces:
PredictRequestResponseLoggingConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PredictRequestResponseLoggingConfig

public static final class PredictRequestResponseLoggingConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder> implements PredictRequestResponseLoggingConfigOrBuilder
 Configuration for logging request-response to a BigQuery table.
 
Protobuf type google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
    • getDefaultInstanceForType

      public PredictRequestResponseLoggingConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public PredictRequestResponseLoggingConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PredictRequestResponseLoggingConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
    • mergeFrom

      public PredictRequestResponseLoggingConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PredictRequestResponseLoggingConfig.Builder>
      Throws:
      IOException
    • getEnabled

      public boolean getEnabled()
       If logging is enabled or not.
       
      bool enabled = 1;
      Specified by:
      getEnabled in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public PredictRequestResponseLoggingConfig.Builder setEnabled(boolean value)
       If logging is enabled or not.
       
      bool enabled = 1;
      Parameters:
      value - The enabled to set.
      Returns:
      This builder for chaining.
    • clearEnabled

       If logging is enabled or not.
       
      bool enabled = 1;
      Returns:
      This builder for chaining.
    • getSamplingRate

      public double getSamplingRate()
       Percentage of requests to be logged, expressed as a fraction in
       range(0,1].
       
      double sampling_rate = 2;
      Specified by:
      getSamplingRate in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The samplingRate.
    • setSamplingRate

      public PredictRequestResponseLoggingConfig.Builder setSamplingRate(double value)
       Percentage of requests to be logged, expressed as a fraction in
       range(0,1].
       
      double sampling_rate = 2;
      Parameters:
      value - The samplingRate to set.
      Returns:
      This builder for chaining.
    • clearSamplingRate

      public PredictRequestResponseLoggingConfig.Builder clearSamplingRate()
       Percentage of requests to be logged, expressed as a fraction in
       range(0,1].
       
      double sampling_rate = 2;
      Returns:
      This builder for chaining.
    • hasBigqueryDestination

      public boolean hasBigqueryDestination()
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
      Specified by:
      hasBigqueryDestination in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      Whether the bigqueryDestination field is set.
    • getBigqueryDestination

      public BigQueryDestination getBigqueryDestination()
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
      Specified by:
      getBigqueryDestination in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The bigqueryDestination.
    • setBigqueryDestination

       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
    • setBigqueryDestination

      public PredictRequestResponseLoggingConfig.Builder setBigqueryDestination(BigQueryDestination.Builder builderForValue)
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
    • mergeBigqueryDestination

      public PredictRequestResponseLoggingConfig.Builder mergeBigqueryDestination(BigQueryDestination value)
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
    • clearBigqueryDestination

      public PredictRequestResponseLoggingConfig.Builder clearBigqueryDestination()
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
    • getBigqueryDestinationBuilder

      public BigQueryDestination.Builder getBigqueryDestinationBuilder()
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
    • getBigqueryDestinationOrBuilder

      public BigQueryDestinationOrBuilder getBigqueryDestinationOrBuilder()
       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`
       
      .google.cloud.aiplatform.v1beta1.BigQueryDestination bigquery_destination = 3;
      Specified by:
      getBigqueryDestinationOrBuilder in interface PredictRequestResponseLoggingConfigOrBuilder
    • getRequestResponseLoggingSchemaVersion

      public String getRequestResponseLoggingSchemaVersion()
       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".
       
      string request_response_logging_schema_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestResponseLoggingSchemaVersion in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The requestResponseLoggingSchemaVersion.
    • getRequestResponseLoggingSchemaVersionBytes

      public com.google.protobuf.ByteString getRequestResponseLoggingSchemaVersionBytes()
       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".
       
      string request_response_logging_schema_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getRequestResponseLoggingSchemaVersionBytes in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The bytes for requestResponseLoggingSchemaVersion.
    • setRequestResponseLoggingSchemaVersion

      public PredictRequestResponseLoggingConfig.Builder setRequestResponseLoggingSchemaVersion(String value)
       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".
       
      string request_response_logging_schema_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The requestResponseLoggingSchemaVersion to set.
      Returns:
      This builder for chaining.
    • clearRequestResponseLoggingSchemaVersion

      public PredictRequestResponseLoggingConfig.Builder clearRequestResponseLoggingSchemaVersion()
       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".
       
      string request_response_logging_schema_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setRequestResponseLoggingSchemaVersionBytes

      public PredictRequestResponseLoggingConfig.Builder setRequestResponseLoggingSchemaVersionBytes(com.google.protobuf.ByteString value)
       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".
       
      string request_response_logging_schema_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for requestResponseLoggingSchemaVersion to set.
      Returns:
      This builder for chaining.
    • getEnableOtelLogging

      public boolean getEnableOtelLogging()
       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.
       
      bool enable_otel_logging = 6;
      Specified by:
      getEnableOtelLogging in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The enableOtelLogging.
    • setEnableOtelLogging

      public PredictRequestResponseLoggingConfig.Builder setEnableOtelLogging(boolean value)
       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.
       
      bool enable_otel_logging = 6;
      Parameters:
      value - The enableOtelLogging to set.
      Returns:
      This builder for chaining.
    • clearEnableOtelLogging

      public PredictRequestResponseLoggingConfig.Builder clearEnableOtelLogging()
       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.
       
      bool enable_otel_logging = 6;
      Returns:
      This builder for chaining.