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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.BigQueryDestination bigquery_destination = 3;
      Specified by:
      getBigqueryDestinationOrBuilder in interface PredictRequestResponseLoggingConfigOrBuilder