Class PredictRequestResponseLoggingConfig.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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

        public PredictRequestResponseLoggingConfig 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PredictRequestResponseLoggingConfig.Builder>
      • 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.
      • 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

        public PredictRequestResponseLoggingConfig.Builder setBigqueryDestination​(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;
      • 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