public static final class CodePosition.Builder extends GeneratedMessage.Builder<CodePosition.Builder> implements CodePositionOrBuilderCodePosition represents a code location.
Protobuf type google.cloud.designcenter.v1.CodePosition
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > CodePosition.BuilderImplements
CodePositionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public CodePosition build()| Returns | |
|---|---|
| Type | Description |
CodePosition |
|
buildPartial()
public CodePosition buildPartial()| Returns | |
|---|---|
| Type | Description |
CodePosition |
|
clear()
public CodePosition.Builder clear()| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
|
clearByteOffset()
public CodePosition.Builder clearByteOffset()Output only. Byte offset in the content.
int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |
clearColumn()
public CodePosition.Builder clearColumn()Output only. One-based column count of the relevant position.
int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |
clearLine()
public CodePosition.Builder clearLine()Output only. One-based line count of the relevant position.
int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |
getByteOffset()
public int getByteOffset()Output only. Byte offset in the content.
int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The byteOffset. |
getColumn()
public int getColumn()Output only. One-based column count of the relevant position.
int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The column. |
getDefaultInstanceForType()
public CodePosition getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CodePosition |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLine()
public int getLine()Output only. One-based line count of the relevant position.
int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The line. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodePosition other)
public CodePosition.Builder mergeFrom(CodePosition other)| Parameter | |
|---|---|
| Name | Description |
other |
CodePosition |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CodePosition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public CodePosition.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
|
setByteOffset(int value)
public CodePosition.Builder setByteOffset(int value)Output only. Byte offset in the content.
int32 byte_offset = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe byteOffset to set. |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |
setColumn(int value)
public CodePosition.Builder setColumn(int value)Output only. One-based column count of the relevant position.
int32 column = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe column to set. |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |
setLine(int value)
public CodePosition.Builder setLine(int value)Output only. One-based line count of the relevant position.
int32 line = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe line to set. |
| Returns | |
|---|---|
| Type | Description |
CodePosition.Builder |
This builder for chaining. |