Class PredictRequestResponseLoggingConfig.Builder (1.18.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.vertexai.v1.PredictRequestResponseLoggingConfig

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PredictRequestResponseLoggingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

build()

public PredictRequestResponseLoggingConfig build()
Returns
Type Description
PredictRequestResponseLoggingConfig

buildPartial()

public PredictRequestResponseLoggingConfig buildPartial()
Returns
Type Description
PredictRequestResponseLoggingConfig

clear()

public PredictRequestResponseLoggingConfig.Builder clear()
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

clearEnabled()

public PredictRequestResponseLoggingConfig.Builder clearEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PredictRequestResponseLoggingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PredictRequestResponseLoggingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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
Type Description
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

clone()

public PredictRequestResponseLoggingConfig.Builder clone()
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Returns
Type Description
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Returns
Type Description
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Returns
Type Description
BigQueryDestinationOrBuilder

getDefaultInstanceForType()

public PredictRequestResponseLoggingConfig getDefaultInstanceForType()
Returns
Type Description
PredictRequestResponseLoggingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
Type Description
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
Type Description
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Returns
Type Description
boolean

Whether the bigqueryDestination field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Parameter
Name Description
value BigQueryDestination

mergeFrom(PredictRequestResponseLoggingConfig other)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(PredictRequestResponseLoggingConfig other)
Parameter
Name Description
other PredictRequestResponseLoggingConfig

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PredictRequestResponseLoggingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PredictRequestResponseLoggingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.vertexai.v1.BigQueryDestination bigquery_destination = 3;

Parameter
Name Description
value BigQueryDestination

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

Parameter
Name Description
builderForValue BigQueryDestination.Builder

setEnabled(boolean value)

public PredictRequestResponseLoggingConfig.Builder setEnabled(boolean value)

If logging is enabled or not.

bool enabled = 1;

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PredictRequestResponseLoggingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

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

public PredictRequestResponseLoggingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
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
Name Description
value double

The samplingRate to set.

Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PredictRequestResponseLoggingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides