Class ErrorMetric.Builder (1.10.0)

public static final class ErrorMetric.Builder extends GeneratedMessageV3.Builder<ErrorMetric.Builder> implements ErrorMetricOrBuilder

Aggregated error counts grouped by error code, SQL state, and method.

Protobuf type google.cloud.bigquery.jdbc.telemetry.v1.ErrorMetric

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ErrorMetric build()
Returns
Type Description
ErrorMetric

buildPartial()

public ErrorMetric buildPartial()
Returns
Type Description
ErrorMetric

clear()

public ErrorMetric.Builder clear()
Returns
Type Description
ErrorMetric.Builder
Overrides

clearCount()

public ErrorMetric.Builder clearCount()

int64 count = 4;

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

clearErrorCode()

public ErrorMetric.Builder clearErrorCode()

int32 error_code = 1;

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

clearErrorSqlState()

public ErrorMetric.Builder clearErrorSqlState()

string error_sql_state = 5;

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

clearErrorXdbcCode()

public ErrorMetric.Builder clearErrorXdbcCode()

int32 error_xdbc_code = 2;

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ErrorMetric.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ErrorMetric.Builder
Overrides

clearMethodName()

public ErrorMetric.Builder clearMethodName()

string method_name = 3;

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ErrorMetric.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ErrorMetric.Builder
Overrides

clone()

public ErrorMetric.Builder clone()
Returns
Type Description
ErrorMetric.Builder
Overrides

getCount()

public long getCount()

int64 count = 4;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public ErrorMetric getDefaultInstanceForType()
Returns
Type Description
ErrorMetric

getDescriptorForType()

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

getErrorCode()

public int getErrorCode()

int32 error_code = 1;

Returns
Type Description
int

The errorCode.

getErrorSqlState()

public String getErrorSqlState()

string error_sql_state = 5;

Returns
Type Description
String

The errorSqlState.

getErrorSqlStateBytes()

public ByteString getErrorSqlStateBytes()

string error_sql_state = 5;

Returns
Type Description
ByteString

The bytes for errorSqlState.

getErrorXdbcCode()

public int getErrorXdbcCode()

int32 error_xdbc_code = 2;

Returns
Type Description
int

The errorXdbcCode.

getMethodName()

public String getMethodName()

string method_name = 3;

Returns
Type Description
String

The methodName.

getMethodNameBytes()

public ByteString getMethodNameBytes()

string method_name = 3;

Returns
Type Description
ByteString

The bytes for methodName.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ErrorMetric other)

public ErrorMetric.Builder mergeFrom(ErrorMetric other)
Parameter
Name Description
other ErrorMetric
Returns
Type Description
ErrorMetric.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ErrorMetric.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ErrorMetric.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ErrorMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorMetric.Builder
Overrides

setCount(long value)

public ErrorMetric.Builder setCount(long value)

int64 count = 4;

Parameter
Name Description
value long

The count to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setErrorCode(int value)

public ErrorMetric.Builder setErrorCode(int value)

int32 error_code = 1;

Parameter
Name Description
value int

The errorCode to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setErrorSqlState(String value)

public ErrorMetric.Builder setErrorSqlState(String value)

string error_sql_state = 5;

Parameter
Name Description
value String

The errorSqlState to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setErrorSqlStateBytes(ByteString value)

public ErrorMetric.Builder setErrorSqlStateBytes(ByteString value)

string error_sql_state = 5;

Parameter
Name Description
value ByteString

The bytes for errorSqlState to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setErrorXdbcCode(int value)

public ErrorMetric.Builder setErrorXdbcCode(int value)

int32 error_xdbc_code = 2;

Parameter
Name Description
value int

The errorXdbcCode to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMethodName(String value)

public ErrorMetric.Builder setMethodName(String value)

string method_name = 3;

Parameter
Name Description
value String

The methodName to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

setMethodNameBytes(ByteString value)

public ErrorMetric.Builder setMethodNameBytes(ByteString value)

string method_name = 3;

Parameter
Name Description
value ByteString

The bytes for methodName to set.

Returns
Type Description
ErrorMetric.Builder

This builder for chaining.

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

public ErrorMetric.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ErrorMetric.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ErrorMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ErrorMetric.Builder
Overrides