Class PredictRequestResponseLoggingConfig.Builder (3.16.0)

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.v1beta1.PredictRequestResponseLoggingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PredictRequestResponseLoggingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

build()

public PredictRequestResponseLoggingConfig build()
Returns
TypeDescription
PredictRequestResponseLoggingConfig

buildPartial()

public PredictRequestResponseLoggingConfig buildPartial()
Returns
TypeDescription
PredictRequestResponseLoggingConfig

clear()

public PredictRequestResponseLoggingConfig.Builder clear()
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

clearEnabled()

public PredictRequestResponseLoggingConfig.Builder clearEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PredictRequestResponseLoggingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PredictRequestResponseLoggingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

clearSamplingRate()

public PredictRequestResponseLoggingConfig.Builder clearSamplingRate()

Percentage of requests to be logged, expressed as a fraction in range(0,1].

double sampling_rate = 2;

Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

clone()

public PredictRequestResponseLoggingConfig.Builder clone()
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Returns
TypeDescription
BigQueryDestination

The bigqueryDestination.

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Returns
TypeDescription
BigQueryDestination.Builder

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Returns
TypeDescription
BigQueryDestinationOrBuilder

getDefaultInstanceForType()

public PredictRequestResponseLoggingConfig getDefaultInstanceForType()
Returns
TypeDescription
PredictRequestResponseLoggingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getSamplingRate()

public double getSamplingRate()

Percentage of requests to be logged, expressed as a fraction in range(0,1].

double sampling_rate = 2;

Returns
TypeDescription
double

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Returns
TypeDescription
boolean

Whether the bigqueryDestination field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBigqueryDestination(BigQueryDestination value)

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Parameter
NameDescription
valueBigQueryDestination
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

mergeFrom(PredictRequestResponseLoggingConfig other)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(PredictRequestResponseLoggingConfig other)
Parameter
NameDescription
otherPredictRequestResponseLoggingConfig
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PredictRequestResponseLoggingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

setBigqueryDestination(BigQueryDestination value)

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Parameter
NameDescription
valueBigQueryDestination
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

setBigqueryDestination(BigQueryDestination.Builder builderForValue)

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.v1beta1.BigQueryDestination bigquery_destination = 3;

Parameter
NameDescription
builderForValueBigQueryDestination.Builder
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

setEnabled(boolean value)

public PredictRequestResponseLoggingConfig.Builder setEnabled(boolean value)

If logging is enabled or not.

bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PredictRequestResponseLoggingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PredictRequestResponseLoggingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides

setSamplingRate(double value)

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
NameDescription
valuedouble

The samplingRate to set.

Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PredictRequestResponseLoggingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PredictRequestResponseLoggingConfig.Builder
Overrides