public final class SourceSpan extends com.google.protobuf.GeneratedMessage implements SourceSpanOrBuilder
A chunk of a source file.Protobuf type
sass.embedded_protocol.SourceSpan
Modifier and Type | Class and Description |
---|---|
static class |
SourceSpan.Builder
A chunk of a source file.
|
static class |
SourceSpan.SourceLocation
A single point in a source file.
|
static interface |
SourceSpan.SourceLocationOrBuilder |
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
CONTEXT_FIELD_NUMBER |
static int |
END_FIELD_NUMBER |
static int |
START_FIELD_NUMBER |
static int |
TEXT_FIELD_NUMBER |
static int |
URL_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getContext()
Additional source text surrounding this span.
|
com.google.protobuf.ByteString |
getContextBytes()
Additional source text surrounding this span.
|
static SourceSpan |
getDefaultInstance() |
SourceSpan |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
SourceSpan.SourceLocation |
getEnd()
The location of the first character after this span.
|
SourceSpan.SourceLocationOrBuilder |
getEndOrBuilder()
The location of the first character after this span.
|
com.google.protobuf.Parser<SourceSpan> |
getParserForType() |
int |
getSerializedSize() |
SourceSpan.SourceLocation |
getStart()
The location of the first character in this span.
|
SourceSpan.SourceLocationOrBuilder |
getStartOrBuilder()
The location of the first character in this span.
|
String |
getText()
The text covered by the source span.
|
com.google.protobuf.ByteString |
getTextBytes()
The text covered by the source span.
|
String |
getUrl()
The URL of the file to which this span refers.
|
com.google.protobuf.ByteString |
getUrlBytes()
The URL of the file to which this span refers.
|
boolean |
hasEnd()
The location of the first character after this span.
|
int |
hashCode() |
boolean |
hasStart()
The location of the first character in this span.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SourceSpan.Builder |
newBuilder() |
static SourceSpan.Builder |
newBuilder(SourceSpan prototype) |
SourceSpan.Builder |
newBuilderForType() |
protected SourceSpan.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static SourceSpan |
parseDelimitedFrom(InputStream input) |
static SourceSpan |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceSpan |
parseFrom(byte[] data) |
static SourceSpan |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceSpan |
parseFrom(ByteBuffer data) |
static SourceSpan |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceSpan |
parseFrom(com.google.protobuf.ByteString data) |
static SourceSpan |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceSpan |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SourceSpan |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SourceSpan |
parseFrom(InputStream input) |
static SourceSpan |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SourceSpan> |
parser() |
SourceSpan.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashFields, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int TEXT_FIELD_NUMBER
public static final int START_FIELD_NUMBER
public static final int END_FIELD_NUMBER
public static final int URL_FIELD_NUMBER
public static final int CONTEXT_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public String getText()
The text covered by the source span. Compilers must guarantee that this is the text between `start.offset` and `end.offset` in the source file referred to by `url`.
string text = 1;
getText
in interface SourceSpanOrBuilder
public com.google.protobuf.ByteString getTextBytes()
The text covered by the source span. Compilers must guarantee that this is the text between `start.offset` and `end.offset` in the source file referred to by `url`.
string text = 1;
getTextBytes
in interface SourceSpanOrBuilder
public boolean hasStart()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
hasStart
in interface SourceSpanOrBuilder
public SourceSpan.SourceLocation getStart()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
getStart
in interface SourceSpanOrBuilder
public SourceSpan.SourceLocationOrBuilder getStartOrBuilder()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
getStartOrBuilder
in interface SourceSpanOrBuilder
public boolean hasEnd()
The location of the first character after this span. If this is omitted, it indicates that the span is empty and points immediately before `start`. In that case, `text` must be empty. This must not point to a location before `start`.
optional .sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
hasEnd
in interface SourceSpanOrBuilder
public SourceSpan.SourceLocation getEnd()
The location of the first character after this span. If this is omitted, it indicates that the span is empty and points immediately before `start`. In that case, `text` must be empty. This must not point to a location before `start`.
optional .sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
getEnd
in interface SourceSpanOrBuilder
public SourceSpan.SourceLocationOrBuilder getEndOrBuilder()
The location of the first character after this span. If this is omitted, it indicates that the span is empty and points immediately before `start`. In that case, `text` must be empty. This must not point to a location before `start`.
optional .sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
getEndOrBuilder
in interface SourceSpanOrBuilder
public String getUrl()
The URL of the file to which this span refers. This may be empty, indicating that the span refers to a `CompileRequest.StringInput` file that doesn't specify a URL.
string url = 4;
getUrl
in interface SourceSpanOrBuilder
public com.google.protobuf.ByteString getUrlBytes()
The URL of the file to which this span refers. This may be empty, indicating that the span refers to a `CompileRequest.StringInput` file that doesn't specify a URL.
string url = 4;
getUrlBytes
in interface SourceSpanOrBuilder
public String getContext()
Additional source text surrounding this span. If this isn't empty, it must contain `text`. Furthermore, `text` must begin at column `start.column` of a line in `context`. This usually contains the full lines the span begins and ends on if the span itself doesn't cover the full lines.
string context = 5;
getContext
in interface SourceSpanOrBuilder
public com.google.protobuf.ByteString getContextBytes()
Additional source text surrounding this span. If this isn't empty, it must contain `text`. Furthermore, `text` must begin at column `start.column` of a line in `context`. This usually contains the full lines the span begins and ends on if the span itself doesn't cover the full lines.
string context = 5;
getContextBytes
in interface SourceSpanOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static SourceSpan parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static SourceSpan parseFrom(InputStream input) throws IOException
IOException
public static SourceSpan parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SourceSpan parseDelimitedFrom(InputStream input) throws IOException
IOException
public static SourceSpan parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static SourceSpan parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static SourceSpan parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public SourceSpan.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static SourceSpan.Builder newBuilder()
public static SourceSpan.Builder newBuilder(SourceSpan prototype)
public SourceSpan.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected SourceSpan.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.AbstractMessage
public static SourceSpan getDefaultInstance()
public static com.google.protobuf.Parser<SourceSpan> parser()
public com.google.protobuf.Parser<SourceSpan> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public SourceSpan getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder