public static final class ErrorMetric.Builder extends GeneratedMessageV3.Builder<ErrorMetric.Builder> implements ErrorMetricOrBuilderAggregated error counts grouped by error code, SQL state, and method.
Protobuf type google.cloud.bigquery.jdbc.telemetry.v1.ErrorMetric
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder<BuilderType> > GeneratedMessage.ExtendableBuilder<MessageType,BuilderType> > GeneratedMessageV3.Builder > ErrorMetric.BuilderImplements
ErrorMetricOrBuilderStatic 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 |
|
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 |
|
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 |
|
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 |
|
clone()
public ErrorMetric.Builder clone()| Returns | |
|---|---|
| Type | Description |
ErrorMetric.Builder |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ErrorMetric.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ErrorMetric.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ErrorMetric.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ErrorMetric.Builder |
|
setCount(long value)
public ErrorMetric.Builder setCount(long value)int64 count = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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 |
intThe 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 |
|
setMethodName(String value)
public ErrorMetric.Builder setMethodName(String value)string method_name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe 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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ErrorMetric.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ErrorMetric.Builder |
|