Package com.google.api.expr.v1alpha1
Class SourcePosition.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
-
- com.google.api.expr.v1alpha1.SourcePosition.Builder
-
- All Implemented Interfaces:
SourcePositionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- SourcePosition
public static final class SourcePosition.Builder extends com.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder> implements SourcePositionOrBuilder
A specific position in source.
Protobuf typegoogle.api.expr.v1alpha1.SourcePosition
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private int
column_
private int
line_
private java.lang.Object
location_
private int
offset_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcePosition
build()
SourcePosition
buildPartial()
private void
buildPartial0(SourcePosition result)
SourcePosition.Builder
clear()
SourcePosition.Builder
clearColumn()
The 0-based index of the starting position within the line of source text where the issue occurs.SourcePosition.Builder
clearLine()
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.SourcePosition.Builder
clearLocation()
The soucre location name (e.g.SourcePosition.Builder
clearOffset()
The UTF-8 code unit offset.int
getColumn()
The 0-based index of the starting position within the line of source text where the issue occurs.SourcePosition
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
int
getLine()
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.java.lang.String
getLocation()
The soucre location name (e.g.com.google.protobuf.ByteString
getLocationBytes()
The soucre location name (e.g.int
getOffset()
The UTF-8 code unit offset.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
SourcePosition.Builder
mergeFrom(SourcePosition other)
SourcePosition.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SourcePosition.Builder
mergeFrom(com.google.protobuf.Message other)
SourcePosition.Builder
setColumn(int value)
The 0-based index of the starting position within the line of source text where the issue occurs.SourcePosition.Builder
setLine(int value)
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.SourcePosition.Builder
setLocation(java.lang.String value)
The soucre location name (e.g.SourcePosition.Builder
setLocationBytes(com.google.protobuf.ByteString value)
The soucre location name (e.g.SourcePosition.Builder
setOffset(int value)
The UTF-8 code unit offset.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
-
clear
public SourcePosition.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
-
getDefaultInstanceForType
public SourcePosition getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SourcePosition build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SourcePosition buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(SourcePosition result)
-
mergeFrom
public SourcePosition.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourcePosition.Builder>
-
mergeFrom
public SourcePosition.Builder mergeFrom(SourcePosition other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<SourcePosition.Builder>
-
mergeFrom
public SourcePosition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SourcePosition.Builder>
- Throws:
java.io.IOException
-
getLocation
public java.lang.String getLocation()
The soucre location name (e.g. file name).
string location = 1;
- Specified by:
getLocation
in interfaceSourcePositionOrBuilder
- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
The soucre location name (e.g. file name).
string location = 1;
- Specified by:
getLocationBytes
in interfaceSourcePositionOrBuilder
- Returns:
- The bytes for location.
-
setLocation
public SourcePosition.Builder setLocation(java.lang.String value)
The soucre location name (e.g. file name).
string location = 1;
- Parameters:
value
- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public SourcePosition.Builder clearLocation()
The soucre location name (e.g. file name).
string location = 1;
- Returns:
- This builder for chaining.
-
setLocationBytes
public SourcePosition.Builder setLocationBytes(com.google.protobuf.ByteString value)
The soucre location name (e.g. file name).
string location = 1;
- Parameters:
value
- The bytes for location to set.- Returns:
- This builder for chaining.
-
getOffset
public int getOffset()
The UTF-8 code unit offset.
int32 offset = 2;
- Specified by:
getOffset
in interfaceSourcePositionOrBuilder
- Returns:
- The offset.
-
setOffset
public SourcePosition.Builder setOffset(int value)
The UTF-8 code unit offset.
int32 offset = 2;
- Parameters:
value
- The offset to set.- Returns:
- This builder for chaining.
-
clearOffset
public SourcePosition.Builder clearOffset()
The UTF-8 code unit offset.
int32 offset = 2;
- Returns:
- This builder for chaining.
-
getLine
public int getLine()
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
int32 line = 3;
- Specified by:
getLine
in interfaceSourcePositionOrBuilder
- Returns:
- The line.
-
setLine
public SourcePosition.Builder setLine(int value)
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
int32 line = 3;
- Parameters:
value
- The line to set.- Returns:
- This builder for chaining.
-
clearLine
public SourcePosition.Builder clearLine()
The 1-based index of the starting line in the source text where the issue occurs, or 0 if unknown.
int32 line = 3;
- Returns:
- This builder for chaining.
-
getColumn
public int getColumn()
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzero.
int32 column = 4;
- Specified by:
getColumn
in interfaceSourcePositionOrBuilder
- Returns:
- The column.
-
setColumn
public SourcePosition.Builder setColumn(int value)
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzero.
int32 column = 4;
- Parameters:
value
- The column to set.- Returns:
- This builder for chaining.
-
clearColumn
public SourcePosition.Builder clearColumn()
The 0-based index of the starting position within the line of source text where the issue occurs. Only meaningful if line is nonzero.
int32 column = 4;
- Returns:
- This builder for chaining.
-
-