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
public static final int FILE_PATH_FIELD_NUMBER
Field Value
public static final int FUNCTION_NAME_FIELD_NUMBER
Field Value
public static final int LINE_NUMBER_FIELD_NUMBER
Field Value
Static Methods
public static SourceLocation getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static SourceLocation.Builder newBuilder()
Returns
public static SourceLocation.Builder newBuilder(SourceLocation prototype)
Parameter
Returns
public static SourceLocation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SourceLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SourceLocation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static SourceLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SourceLocation parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static SourceLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SourceLocation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SourceLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SourceLocation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SourceLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SourceLocation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static SourceLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<SourceLocation> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public SourceLocation getDefaultInstanceForType()
Returns
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
Type | Description |
String | The filePath.
|
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
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
Type | Description |
String | The functionName.
|
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
Type | Description |
ByteString | The bytes for functionName.
|
public int getLineNumber()
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
Returns
Type | Description |
int | The lineNumber.
|
public Parser<SourceLocation> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public SourceLocation.Builder newBuilderForType()
Returns
protected SourceLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public SourceLocation.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions