Class SourceLocation.Builder (0.155.0-beta)
0.208.0-beta (latest)
0.206.0-beta
0.204.0-beta
0.203.0-beta
0.202.0-beta
0.201.0-beta
0.199.0-beta
0.197.0-beta
0.196.0-beta
0.195.0-beta
0.194.0-beta
0.193.0-beta
0.191.0-beta
0.189.0-beta
0.188.0-beta
0.185.0-beta
0.184.0-beta
0.183.0-beta
0.181.0-beta
0.180.0-beta
0.179.0-beta
0.178.0-beta
0.177.0-beta
0.176.0-beta
0.175.0-beta
0.174.0-beta
0.173.0-beta
0.172.0-beta
0.170.0-beta
0.169.0-beta
0.168.0-beta
0.167.0-beta
0.166.0-beta
0.165.0-beta
0.164.0-beta
0.163.0-beta
0.162.0-beta
0.161.0-beta
0.160.0-beta
0.158.0-beta
0.157.0-beta
0.156.0-beta
0.155.0-beta
0.154.0-beta
0.153.0-beta
0.152.0-beta
0.151.0-beta
0.150.0-beta
0.149.0-beta
0.148.0-beta
0.145.0-beta
0.144.0-beta
0.143.0-beta
0.142.0-beta
0.141.0-beta
0.140.0-beta
0.139.0-beta
0.138.0-beta
0.137.0-beta
0.136.0-beta
0.135.0-beta
0.134.0-beta
0.133.0-beta
0.132.0-beta
0.130.0-beta
0.129.0-beta
0.128.0-beta
0.127.0-beta
0.126.0-beta
0.125.0-beta
0.124.15-beta
0.123.4-beta
0.122.23-beta
public static final class SourceLocation . Builder extends GeneratedMessageV3 . Builder<SourceLocation . Builder > 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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public SourceLocation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SourceLocation build ()
public SourceLocation buildPartial ()
public SourceLocation . Builder clear ()
Overrides
public SourceLocation . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public SourceLocation . Builder clearFilePath ()
The source code filename, which can include a truncated relative
path, or a full path from a production machine.
string file_path = 1;
public SourceLocation . Builder clearFunctionName ()
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;
public SourceLocation . Builder clearLineNumber ()
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
public SourceLocation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public SourceLocation . Builder clone ()
Overrides
public SourceLocation getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SourceLocation . Builder mergeFrom ( SourceLocation other )
public SourceLocation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public SourceLocation . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
public final SourceLocation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public SourceLocation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public SourceLocation . Builder setFilePath ( String value )
The source code filename, which can include a truncated relative
path, or a full path from a production machine.
string file_path = 1;
Parameter
Name
Description
value
String The filePath to set.
public SourceLocation . Builder setFilePathBytes ( ByteString value )
The source code filename, which can include a truncated relative
path, or a full path from a production machine.
string file_path = 1;
Parameter
Name
Description
value
ByteString The bytes for filePath to set.
public SourceLocation . Builder setFunctionName ( String value )
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;
Parameter
Name
Description
value
String The functionName to set.
public SourceLocation . Builder setFunctionNameBytes ( ByteString value )
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;
Parameter
Name
Description
value
ByteString The bytes for functionName to set.
public SourceLocation . Builder setLineNumber ( int value )
1-based. 0 indicates that the line number is unknown.
int32 line_number = 2;
Parameter
Name
Description
value
int The lineNumber to set.
public SourceLocation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
public final SourceLocation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-03-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-14 UTC."],[],[]]