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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int FILE_PATH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int FUNCTION_NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int LINE_NUMBER_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
public static SourceLocation getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SourceLocation.Builder newBuilder()
public static SourceLocation.Builder newBuilder(SourceLocation prototype)
public static SourceLocation parseDelimitedFrom(InputStream input)
public static SourceLocation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SourceLocation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
public static SourceLocation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SourceLocation parseFrom(ByteString data)
public static SourceLocation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SourceLocation parseFrom(CodedInputStream input)
public static SourceLocation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SourceLocation parseFrom(InputStream input)
public static SourceLocation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SourceLocation parseFrom(ByteBuffer data)
public static SourceLocation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SourceLocation> parser()
Methods
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
public SourceLocation getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for filePath.
|
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()
Overrides
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
Returns |
---|
Type | Description |
int | |
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SourceLocation.Builder newBuilderForType()
protected SourceLocation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
public SourceLocation.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides