public static final class PredictRequestResponseLoggingConfig.Builder extends GeneratedMessageV3.Builder<PredictRequestResponseLoggingConfig.Builder> implements PredictRequestResponseLoggingConfigOrBuilder
Configuration for logging request-response to a BigQuery table.
Protobuf type google.cloud.aiplatform.v1.PredictRequestResponseLoggingConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public PredictRequestResponseLoggingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PredictRequestResponseLoggingConfig build()
public PredictRequestResponseLoggingConfig buildPartial()
public PredictRequestResponseLoggingConfig.Builder clear()
Overrides
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;
public PredictRequestResponseLoggingConfig.Builder clearEnabled()
If logging is enabled or not.
bool enabled = 1;
public PredictRequestResponseLoggingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public PredictRequestResponseLoggingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public PredictRequestResponseLoggingConfig.Builder clearSamplingRate()
Percentage of requests to be logged, expressed as a fraction in
range(0,1].
double sampling_rate = 2;
public PredictRequestResponseLoggingConfig.Builder clone()
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;
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;
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;
public PredictRequestResponseLoggingConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public boolean getEnabled()
If logging is enabled or not.
bool enabled = 1;
Returns |
---|
Type | Description |
boolean | The enabled.
|
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 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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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;
public PredictRequestResponseLoggingConfig.Builder mergeFrom(PredictRequestResponseLoggingConfig other)
public PredictRequestResponseLoggingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public PredictRequestResponseLoggingConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final PredictRequestResponseLoggingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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;
public PredictRequestResponseLoggingConfig.Builder setEnabled(boolean value)
If logging is enabled or not.
bool enabled = 1;
Parameter |
---|
Name | Description |
value | boolean
The enabled to set.
|
public PredictRequestResponseLoggingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public PredictRequestResponseLoggingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public PredictRequestResponseLoggingConfig.Builder setSamplingRate(double value)
Percentage of requests to be logged, expressed as a fraction in
range(0,1].
double sampling_rate = 2;
Parameter |
---|
Name | Description |
value | double
The samplingRate to set.
|
public final PredictRequestResponseLoggingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides