Class SourceLocation (0.151.0-beta)

public final class SourceLocation extends GeneratedMessageV3 implements SourceLocationOrBuilder

Indicates a location in the source code of the service for which errors are reported. functionName must be provided by the application when reporting an error, unless the error report contains a message with a supported exception stack trace. All fields are optional for the later case.

Protobuf type google.devtools.clouderrorreporting.v1beta1.SourceLocation

Static Fields

FILE_PATH_FIELD_NUMBER

public static final int FILE_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

FUNCTION_NAME_FIELD_NUMBER

public static final int FUNCTION_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

LINE_NUMBER_FIELD_NUMBER

public static final int LINE_NUMBER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SourceLocation getDefaultInstance()
Returns
TypeDescription
SourceLocation

getDescriptor()

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

newBuilder()

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

newBuilder(SourceLocation prototype)

public static SourceLocation.Builder newBuilder(SourceLocation prototype)
Parameter
NameDescription
prototypeSourceLocation
Returns
TypeDescription
SourceLocation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SourceLocation getDefaultInstanceForType()
Returns
TypeDescription
SourceLocation

getFilePath()

public String getFilePath()

The source code filename, which can include a truncated relative path, or a full path from a production machine.

string file_path = 1;

Returns
TypeDescription
String

The filePath.

getFilePathBytes()

public ByteString getFilePathBytes()

The source code filename, which can include a truncated relative path, or a full path from a production machine.

string file_path = 1;

Returns
TypeDescription
ByteString

The bytes for filePath.

getFunctionName()

public String getFunctionName()

Human-readable name of a function or method. The value can include optional context like the class or package name. For example, my.package.MyClass.method in case of Java.

string function_name = 4;

Returns
TypeDescription
String

The functionName.

getFunctionNameBytes()

public ByteString getFunctionNameBytes()

Human-readable name of a function or method. The value can include optional context like the class or package name. For example, my.package.MyClass.method in case of Java.

string function_name = 4;

Returns
TypeDescription
ByteString

The bytes for functionName.

getLineNumber()

public int getLineNumber()

1-based. 0 indicates that the line number is unknown.

int32 line_number = 2;

Returns
TypeDescription
int

The lineNumber.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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 SourceLocation.Builder newBuilderForType()
Returns
TypeDescription
SourceLocation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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