Class SourceLocation.Builder (0.124.15-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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SourceLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SourceLocation.Builder
Overrides

build()

public SourceLocation build()
Returns
TypeDescription
SourceLocation

buildPartial()

public SourceLocation buildPartial()
Returns
TypeDescription
SourceLocation

clear()

public SourceLocation.Builder clear()
Returns
TypeDescription
SourceLocation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SourceLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SourceLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SourceLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SourceLocation.Builder
Overrides

clone()

public SourceLocation.Builder clone()
Returns
TypeDescription
SourceLocation.Builder
Overrides

getDefaultInstanceForType()

public SourceLocation getDefaultInstanceForType()
Returns
TypeDescription
SourceLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SourceLocation other)

public SourceLocation.Builder mergeFrom(SourceLocation other)
Parameter
NameDescription
otherSourceLocation
Returns
TypeDescription
SourceLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SourceLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SourceLocation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SourceLocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SourceLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SourceLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceLocation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SourceLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The filePath to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for filePath to set.

Returns
TypeDescription
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
NameDescription
valueString

The functionName to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for functionName to set.

Returns
TypeDescription
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
NameDescription
valueint

The lineNumber to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SourceLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SourceLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SourceLocation.Builder
Overrides