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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SourcePosition.Builder> implements SourcePositionOrBuilder
A specific position in source.
Protobuf typegoogle.api.expr.v1alpha1.SourcePosition
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcePosition.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
SourcePosition
build()
SourcePosition
buildPartial()
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
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
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.SourcePosition.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
SourcePosition.Builder
clone()
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.GeneratedMessageV3.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
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
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
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
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.SourcePosition.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
SourcePosition.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
-
clone
public SourcePosition.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
setField
public SourcePosition.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
clearField
public SourcePosition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
clearOneof
public SourcePosition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
setRepeatedField
public SourcePosition.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
addRepeatedField
public SourcePosition.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
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.GeneratedMessageV3.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.
-
setUnknownFields
public final SourcePosition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
mergeUnknownFields
public final SourcePosition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SourcePosition.Builder>
-
-