Class PredictRequestResponseLoggingConfig.Builder (1.40.0)

publicstaticfinalclass PredictRequestResponseLoggingConfig.BuilderextendsGeneratedMessageV3.Builder<PredictRequestResponseLoggingConfig.Builder>implementsPredictRequestResponseLoggingConfigOrBuilder

Configuration for logging request-response to a BigQuery table.

Protobuf type google.cloud.vertexai.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

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicPredictRequestResponseLoggingConfig.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

build()

publicPredictRequestResponseLoggingConfigbuild()
Returns
Type Description
PredictRequestResponseLoggingConfig

buildPartial()

publicPredictRequestResponseLoggingConfigbuildPartial()
Returns
Type Description
PredictRequestResponseLoggingConfig

clear()

publicPredictRequestResponseLoggingConfig.Builderclear()
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

clearBigqueryDestination()

publicPredictRequestResponseLoggingConfig.BuilderclearBigqueryDestination()

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

clearEnabled()

publicPredictRequestResponseLoggingConfig.BuilderclearEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicPredictRequestResponseLoggingConfig.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicPredictRequestResponseLoggingConfig.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

clearSamplingRate()

publicPredictRequestResponseLoggingConfig.BuilderclearSamplingRate()

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()

publicPredictRequestResponseLoggingConfig.Builderclone()
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

getBigqueryDestination()

publicBigQueryDestinationgetBigqueryDestination()

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()

publicBigQueryDestination.BuildergetBigqueryDestinationBuilder()

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()

publicBigQueryDestinationOrBuildergetBigqueryDestinationOrBuilder()

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()

publicPredictRequestResponseLoggingConfiggetDefaultInstanceForType()
Returns
Type Description
PredictRequestResponseLoggingConfig

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

publicbooleangetEnabled()

If logging is enabled or not.

bool enabled = 1;

Returns
Type Description
boolean

The enabled.

getSamplingRate()

publicdoublegetSamplingRate()

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()

publicbooleanhasBigqueryDestination()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeBigqueryDestination(BigQueryDestination value)

publicPredictRequestResponseLoggingConfig.BuildermergeBigqueryDestination(BigQueryDestinationvalue)

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
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

mergeFrom(PredictRequestResponseLoggingConfig other)

publicPredictRequestResponseLoggingConfig.BuildermergeFrom(PredictRequestResponseLoggingConfigother)
Parameter
Name Description
other PredictRequestResponseLoggingConfig
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicPredictRequestResponseLoggingConfig.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicPredictRequestResponseLoggingConfig.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalPredictRequestResponseLoggingConfig.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

setBigqueryDestination(BigQueryDestination value)

publicPredictRequestResponseLoggingConfig.BuildersetBigqueryDestination(BigQueryDestinationvalue)

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
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

setBigqueryDestination(BigQueryDestination.Builder builderForValue)

publicPredictRequestResponseLoggingConfig.BuildersetBigqueryDestination(BigQueryDestination.BuilderbuilderForValue)

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
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder

setEnabled(boolean value)

publicPredictRequestResponseLoggingConfig.BuildersetEnabled(booleanvalue)

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)

publicPredictRequestResponseLoggingConfig.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

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

publicPredictRequestResponseLoggingConfig.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

setSamplingRate(double value)

publicPredictRequestResponseLoggingConfig.BuildersetSamplingRate(doublevalue)

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)

publicfinalPredictRequestResponseLoggingConfig.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PredictRequestResponseLoggingConfig.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.