Class ErrorMetric (1.10.0)

public final class ErrorMetric extends GeneratedMessageV3 implements ErrorMetricOrBuilder

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

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

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
Type Description
int

ERROR_CODE_FIELD_NUMBER

public static final int ERROR_CODE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_SQL_STATE_FIELD_NUMBER

public static final int ERROR_SQL_STATE_FIELD_NUMBER
Field Value
Type Description
int

ERROR_XDBC_CODE_FIELD_NUMBER

public static final int ERROR_XDBC_CODE_FIELD_NUMBER
Field Value
Type Description
int

METHOD_NAME_FIELD_NUMBER

public static final int METHOD_NAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ErrorMetric getDefaultInstance()
Returns
Type Description
ErrorMetric

getDescriptor()

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

newBuilder()

public static ErrorMetric.Builder newBuilder()
Returns
Type Description
ErrorMetric.Builder

newBuilder(ErrorMetric prototype)

public static ErrorMetric.Builder newBuilder(ErrorMetric prototype)
Parameter
Name Description
prototype ErrorMetric
Returns
Type Description
ErrorMetric.Builder

parseDelimitedFrom(InputStream input)

public static ErrorMetric parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static ErrorMetric parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ErrorMetric parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ErrorMetric parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static ErrorMetric parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static ErrorMetric parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ErrorMetric parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ErrorMetric
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<ErrorMetric> parser()
Returns
Type Description
Parser<ErrorMetric>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getCount()

public long getCount()

int64 count = 4;

Returns
Type Description
long

The count.

getDefaultInstanceForType()

public ErrorMetric getDefaultInstanceForType()
Returns
Type Description
ErrorMetric

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.

getParserForType()

public Parser<ErrorMetric> getParserForType()
Returns
Type Description
Parser<ErrorMetric>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public ErrorMetric.Builder newBuilderForType()
Returns
Type Description
ErrorMetric.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ErrorMetric.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
ErrorMetric.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public ErrorMetric.Builder toBuilder()
Returns
Type Description
ErrorMetric.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException