Package sass.embedded_protocol
Interface EmbeddedSass.SourceSpanOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
EmbeddedSass.SourceSpan
,EmbeddedSass.SourceSpan.Builder
- Enclosing class:
- EmbeddedSass
public static interface EmbeddedSass.SourceSpanOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContext()
Additional source text surrounding this span.ByteString
getContextBytes()
Additional source text surrounding this span.EmbeddedSass.SourceSpan.SourceLocation
getEnd()
The location of the first character after this span.EmbeddedSass.SourceSpan.SourceLocationOrBuilder
getEndOrBuilder()
The location of the first character after this span.EmbeddedSass.SourceSpan.SourceLocation
getStart()
The location of the first character in this span.EmbeddedSass.SourceSpan.SourceLocationOrBuilder
getStartOrBuilder()
The location of the first character in this span.String
getText()
The text covered by the source span.ByteString
getTextBytes()
The text covered by the source span.String
getUrl()
The URL of the file to which this span refers.ByteString
getUrlBytes()
The URL of the file to which this span refers.boolean
hasEnd()
The location of the first character after this span.boolean
hasStart()
The location of the first character in this span.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getText
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;
- Returns:
- The text.
-
getTextBytes
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;
- Returns:
- The bytes for text.
-
hasStart
boolean hasStart()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
- Returns:
- Whether the start field is set.
-
getStart
EmbeddedSass.SourceSpan.SourceLocation getStart()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
- Returns:
- The start.
-
getStartOrBuilder
EmbeddedSass.SourceSpan.SourceLocationOrBuilder getStartOrBuilder()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
hasEnd
boolean hasEnd()
The location of the first character after this span. Optional. 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`.
.sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
- Returns:
- Whether the end field is set.
-
getEnd
EmbeddedSass.SourceSpan.SourceLocation getEnd()
The location of the first character after this span. Optional. 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`.
.sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
- Returns:
- The end.
-
getEndOrBuilder
EmbeddedSass.SourceSpan.SourceLocationOrBuilder getEndOrBuilder()
The location of the first character after this span. Optional. 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`.
.sass.embedded_protocol.SourceSpan.SourceLocation end = 3;
-
getUrl
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;
- Returns:
- The url.
-
getUrlBytes
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;
- Returns:
- The bytes for url.
-
getContext
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;
- Returns:
- The context.
-
getContextBytes
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;
- Returns:
- The bytes for context.
-
-