Class SourceLocation.Builder (0.175.0-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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

build()

public SourceLocation build()
Returns
Type Description
SourceLocation

buildPartial()

public SourceLocation buildPartial()
Returns
Type Description
SourceLocation

clear()

public SourceLocation.Builder clear()
Returns
Type Description
SourceLocation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SourceLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SourceLocation.Builder
Overrides

clearFilePath()

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;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clearFunctionName()

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;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clearLineNumber()

public SourceLocation.Builder clearLineNumber()

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

int32 line_number = 2;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SourceLocation.Builder
Overrides

clone()

public SourceLocation.Builder clone()
Returns
Type Description
SourceLocation.Builder
Overrides

getDefaultInstanceForType()

public SourceLocation getDefaultInstanceForType()
Returns
Type Description
SourceLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
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
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for functionName.

getLineNumber()

public int getLineNumber()

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

int32 line_number = 2;

Returns
Type Description
int

The lineNumber.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceLocation other)

public SourceLocation.Builder mergeFrom(SourceLocation other)
Parameter
Name Description
other SourceLocation
Returns
Type Description
SourceLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SourceLocation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SourceLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceLocation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SourceLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

setFilePath(String value)

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.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setFilePathBytes(ByteString value)

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.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setFunctionName(String value)

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.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setFunctionNameBytes(ByteString value)

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.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setLineNumber(int value)

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.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SourceLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SourceLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceLocation.Builder
Overrides