Class Position.Builder (2.57.0)

public static final class Position.Builder extends GeneratedMessageV3.Builder<Position.Builder> implements PositionOrBuilder

A position in the uploaded text version of a module.

Protobuf type google.cloud.securitycenter.v1.Position

Implements

PositionOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Position build()
Returns
Type Description
Position

buildPartial()

public Position buildPartial()
Returns
Type Description
Position

clear()

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

clearColumnNumber()

public Position.Builder clearColumnNumber()

int32 column_number = 2;

Returns
Type Description
Position.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLineNumber()

public Position.Builder clearLineNumber()

int32 line_number = 1;

Returns
Type Description
Position.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getColumnNumber()

public int getColumnNumber()

int32 column_number = 2;

Returns
Type Description
int

The columnNumber.

getDefaultInstanceForType()

public Position getDefaultInstanceForType()
Returns
Type Description
Position

getDescriptorForType()

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

getLineNumber()

public int getLineNumber()

int32 line_number = 1;

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(Position other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setColumnNumber(int value)

public Position.Builder setColumnNumber(int value)

int32 column_number = 2;

Parameter
Name Description
value int

The columnNumber to set.

Returns
Type Description
Position.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLineNumber(int value)

public Position.Builder setLineNumber(int value)

int32 line_number = 1;

Parameter
Name Description
value int

The lineNumber to set.

Returns
Type Description
Position.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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