Class Diagnostic (3.4.0)

public final class Diagnostic extends GeneratedMessageV3 implements DiagnosticOrBuilder

Represents a diagnostic message (error or warning)

Protobuf type google.api.servicemanagement.v1.Diagnostic

Implements

DiagnosticOrBuilder

Static Fields

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

LOCATION_FIELD_NUMBER

public static final int LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

MESSAGE_FIELD_NUMBER

public static final int MESSAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Diagnostic getDefaultInstance()
Returns
TypeDescription
Diagnostic

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Diagnostic.Builder newBuilder()
Returns
TypeDescription
Diagnostic.Builder

newBuilder(Diagnostic prototype)

public static Diagnostic.Builder newBuilder(Diagnostic prototype)
Parameter
NameDescription
prototypeDiagnostic
Returns
TypeDescription
Diagnostic.Builder

parseDelimitedFrom(InputStream input)

public static Diagnostic parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Diagnostic parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Diagnostic parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Diagnostic parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Diagnostic parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Diagnostic parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Diagnostic parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Diagnostic
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Diagnostic> parser()
Returns
TypeDescription
Parser<Diagnostic>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public Diagnostic getDefaultInstanceForType()
Returns
TypeDescription
Diagnostic

getKind()

public Diagnostic.Kind getKind()

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Returns
TypeDescription
Diagnostic.Kind

The kind.

getKindValue()

public int getKindValue()

The kind of diagnostic information provided.

.google.api.servicemanagement.v1.Diagnostic.Kind kind = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getLocation()

public String getLocation()

File name and line number of the error or warning.

string location = 1;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

File name and line number of the error or warning.

string location = 1;

Returns
TypeDescription
ByteString

The bytes for location.

getMessage()

public String getMessage()

Message describing the error or warning.

string message = 3;

Returns
TypeDescription
String

The message.

getMessageBytes()

public ByteString getMessageBytes()

Message describing the error or warning.

string message = 3;

Returns
TypeDescription
ByteString

The bytes for message.

getParserForType()

public Parser<Diagnostic> getParserForType()
Returns
TypeDescription
Parser<Diagnostic>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Diagnostic.Builder newBuilderForType()
Returns
TypeDescription
Diagnostic.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Diagnostic.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Diagnostic.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Diagnostic.Builder toBuilder()
Returns
TypeDescription
Diagnostic.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException