Class SourceLocation.Builder (1.54.0)

publicstaticfinalclass SourceLocation.BuilderextendsGeneratedMessageV3.Builder<SourceLocation.Builder>implementsSourceLocationOrBuilder

Represents a location in the source code.

Protobuf type google.devtools.clouddebugger.v2.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

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicSourceLocation.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

build()

publicSourceLocationbuild()
Returns
Type Description
SourceLocation

buildPartial()

publicSourceLocationbuildPartial()
Returns
Type Description
SourceLocation

clear()

publicSourceLocation.Builderclear()
Returns
Type Description
SourceLocation.Builder
Overrides

clearColumn()

publicSourceLocation.BuilderclearColumn()

Column within a line. The first column in a line as the value 1. Agents that do not support setting breakpoints on specific columns ignore this field.

int32 column = 3;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicSourceLocation.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SourceLocation.Builder
Overrides

clearLine()

publicSourceLocation.BuilderclearLine()

Line inside the file. The first line in the file has the value 1.

int32 line = 2;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

publicSourceLocation.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SourceLocation.Builder
Overrides

clearPath()

publicSourceLocation.BuilderclearPath()

Path to the source file within the source context of the target binary.

string path = 1;

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

clone()

publicSourceLocation.Builderclone()
Returns
Type Description
SourceLocation.Builder
Overrides

getColumn()

publicintgetColumn()

Column within a line. The first column in a line as the value 1. Agents that do not support setting breakpoints on specific columns ignore this field.

int32 column = 3;

Returns
Type Description
int

The column.

getDefaultInstanceForType()

publicSourceLocationgetDefaultInstanceForType()
Returns
Type Description
SourceLocation

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLine()

publicintgetLine()

Line inside the file. The first line in the file has the value 1.

int32 line = 2;

Returns
Type Description
int

The line.

getPath()

publicStringgetPath()

Path to the source file within the source context of the target binary.

string path = 1;

Returns
Type Description
String

The path.

getPathBytes()

publicByteStringgetPathBytes()

Path to the source file within the source context of the target binary.

string path = 1;

Returns
Type Description
ByteString

The bytes for path.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SourceLocation other)

publicSourceLocation.BuildermergeFrom(SourceLocationother)
Parameter
Name Description
other SourceLocation
Returns
Type Description
SourceLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicSourceLocation.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SourceLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicSourceLocation.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
SourceLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalSourceLocation.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceLocation.Builder
Overrides

setColumn(int value)

publicSourceLocation.BuildersetColumn(intvalue)

Column within a line. The first column in a line as the value 1. Agents that do not support setting breakpoints on specific columns ignore this field.

int32 column = 3;

Parameter
Name Description
value int

The column to set.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

publicSourceLocation.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

setLine(int value)

publicSourceLocation.BuildersetLine(intvalue)

Line inside the file. The first line in the file has the value 1.

int32 line = 2;

Parameter
Name Description
value int

The line to set.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setPath(String value)

publicSourceLocation.BuildersetPath(Stringvalue)

Path to the source file within the source context of the target binary.

string path = 1;

Parameter
Name Description
value String

The path to set.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

setPathBytes(ByteString value)

publicSourceLocation.BuildersetPathBytes(ByteStringvalue)

Path to the source file within the source context of the target binary.

string path = 1;

Parameter
Name Description
value ByteString

The bytes for path to set.

Returns
Type Description
SourceLocation.Builder

This builder for chaining.

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

publicSourceLocation.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SourceLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalSourceLocation.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SourceLocation.Builder
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 2025年10月30日 UTC.