Class QueryError (3.44.0)

public final class QueryError extends GeneratedMessageV3 implements QueryErrorOrBuilder

An error associated with a query in the time series query language format.

Protobuf type google.monitoring.v3.QueryError

Implements

QueryErrorOrBuilder

Static Fields

LOCATOR_FIELD_NUMBER

public static final int LOCATOR_FIELD_NUMBER
Field Value
Type Description
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static QueryError getDefaultInstance()
Returns
Type Description
QueryError

getDescriptor()

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

newBuilder()

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

newBuilder(QueryError prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public QueryError getDefaultInstanceForType()
Returns
Type Description
QueryError

getLocator()

public TextLocator getLocator()

The location of the time series query language text that this error applies to.

.google.monitoring.v3.TextLocator locator = 1;

Returns
Type Description
TextLocator

The locator.

getLocatorOrBuilder()

public TextLocatorOrBuilder getLocatorOrBuilder()

The location of the time series query language text that this error applies to.

.google.monitoring.v3.TextLocator locator = 1;

Returns
Type Description
TextLocatorOrBuilder

getMessage()

public String getMessage()

The error message.

string message = 2;

Returns
Type Description
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

The error message.

string message = 2;

Returns
Type Description
ByteString

The bytes for message.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLocator()

public boolean hasLocator()

The location of the time series query language text that this error applies to.

.google.monitoring.v3.TextLocator locator = 1;

Returns
Type Description
boolean

Whether the locator field is set.

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 QueryError.Builder newBuilderForType()
Returns
Type Description
QueryError.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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