Class PredictRequestResponseLoggingConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig
All Implemented Interfaces:
PredictRequestResponseLoggingConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class PredictRequestResponseLoggingConfig extends com.google.protobuf.GeneratedMessage implements PredictRequestResponseLoggingConfigOrBuilder
 Configuration for logging request-response to a BigQuery table.
 
Protobuf type google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig
See Also:
  • Field Details

    • ENABLED_FIELD_NUMBER

      public static final int ENABLED_FIELD_NUMBER
      See Also:
    • SAMPLING_RATE_FIELD_NUMBER

      public static final int SAMPLING_RATE_FIELD_NUMBER
      See Also:
    • BIGQUERY_DESTINATION_FIELD_NUMBER

      public static final int BIGQUERY_DESTINATION_FIELD_NUMBER
      See Also:
  • 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
    • getEnabled

      public boolean getEnabled()
       If logging is enabled or not.
       
      bool enabled = 1;
      Specified by:
      getEnabled in interface PredictRequestResponseLoggingConfigOrBuilder
      Returns:
      The enabled.
    • 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PredictRequestResponseLoggingConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PredictRequestResponseLoggingConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PredictRequestResponseLoggingConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static PredictRequestResponseLoggingConfig.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected PredictRequestResponseLoggingConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PredictRequestResponseLoggingConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PredictRequestResponseLoggingConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<PredictRequestResponseLoggingConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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