public final class PredictRequestResponseLoggingConfig extends GeneratedMessageV3 implements PredictRequestResponseLoggingConfigOrBuilder
Configuration for logging request-response to a BigQuery table.
Protobuf type google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig
Static Fields
public static final int BIGQUERY_DESTINATION_FIELD_NUMBER
Field Value
public static final int ENABLED_FIELD_NUMBER
Field Value
public static final int SAMPLING_RATE_FIELD_NUMBER
Field Value
Static Methods
public static PredictRequestResponseLoggingConfig getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static PredictRequestResponseLoggingConfig.Builder newBuilder()
Returns
public static PredictRequestResponseLoggingConfig.Builder newBuilder(PredictRequestResponseLoggingConfig prototype)
Parameter
Returns
public static PredictRequestResponseLoggingConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static PredictRequestResponseLoggingConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<PredictRequestResponseLoggingConfig> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
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;
Returns
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;
Returns
public PredictRequestResponseLoggingConfig getDefaultInstanceForType()
Returns
public boolean getEnabled()
If logging is enabled or not.
bool enabled = 1;
Returns
public Parser<PredictRequestResponseLoggingConfig> getParserForType()
Returns
Overrides
public double getSamplingRate()
Percentage of requests to be logged, expressed as a fraction in
range(0,1].
double sampling_rate = 2;
Returns
Type | Description |
double | The samplingRate.
|
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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;
Returns
Type | Description |
boolean | Whether the bigqueryDestination field is set.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public PredictRequestResponseLoggingConfig.Builder newBuilderForType()
Returns
protected PredictRequestResponseLoggingConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public PredictRequestResponseLoggingConfig.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions