public static final class SourceSpan.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder> implements SourceSpanOrBuilder
A chunk of a source file.Protobuf type
sass.embedded_protocol.SourceSpan| Modifier and Type | Method and Description |
|---|---|
SourceSpan.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SourceSpan |
build() |
SourceSpan |
buildPartial() |
SourceSpan.Builder |
clear() |
SourceSpan.Builder |
clearContext()
Additional source text surrounding this span.
|
SourceSpan.Builder |
clearEnd()
The location of the first character after this span.
|
SourceSpan.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SourceSpan.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SourceSpan.Builder |
clearStart()
The location of the first character in this span.
|
SourceSpan.Builder |
clearText()
The text covered by the source span.
|
SourceSpan.Builder |
clearUrl()
The URL of the file to which this span refers.
|
SourceSpan.Builder |
clone() |
String |
getContext()
Additional source text surrounding this span.
|
com.google.protobuf.ByteString |
getContextBytes()
Additional source text surrounding this span.
|
SourceSpan |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
SourceSpan.SourceLocation |
getEnd()
The location of the first character after this span.
|
SourceSpan.SourceLocation.Builder |
getEndBuilder()
The location of the first character after this span.
|
SourceSpan.SourceLocationOrBuilder |
getEndOrBuilder()
The location of the first character after this span.
|
SourceSpan.SourceLocation |
getStart()
The location of the first character in this span.
|
SourceSpan.SourceLocation.Builder |
getStartBuilder()
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.
|
boolean |
hasStart()
The location of the first character in this span.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SourceSpan.Builder |
mergeEnd(SourceSpan.SourceLocation value)
The location of the first character after this span.
|
SourceSpan.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SourceSpan.Builder |
mergeFrom(com.google.protobuf.Message other) |
SourceSpan.Builder |
mergeFrom(SourceSpan other) |
SourceSpan.Builder |
mergeStart(SourceSpan.SourceLocation value)
The location of the first character in this span.
|
SourceSpan.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SourceSpan.Builder |
setContext(String value)
Additional source text surrounding this span.
|
SourceSpan.Builder |
setContextBytes(com.google.protobuf.ByteString value)
Additional source text surrounding this span.
|
SourceSpan.Builder |
setEnd(SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character after this span.
|
SourceSpan.Builder |
setEnd(SourceSpan.SourceLocation value)
The location of the first character after this span.
|
SourceSpan.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SourceSpan.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SourceSpan.Builder |
setStart(SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character in this span.
|
SourceSpan.Builder |
setStart(SourceSpan.SourceLocation value)
The location of the first character in this span.
|
SourceSpan.Builder |
setText(String value)
The text covered by the source span.
|
SourceSpan.Builder |
setTextBytes(com.google.protobuf.ByteString value)
The text covered by the source span.
|
SourceSpan.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SourceSpan.Builder |
setUrl(String value)
The URL of the file to which this span refers.
|
SourceSpan.Builder |
setUrlBytes(com.google.protobuf.ByteString value)
The URL of the file to which this span refers.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SourceSpan build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SourceSpan buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SourceSpan.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceSpan.Builder>public SourceSpan.Builder mergeFrom(SourceSpan other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public SourceSpan.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SourceSpan.Builder>IOExceptionpublic 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 SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic SourceSpan.Builder setText(String value)
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;value - The text to set.public SourceSpan.Builder clearText()
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;public SourceSpan.Builder setTextBytes(com.google.protobuf.ByteString value)
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;value - The bytes for text to set.public boolean hasStart()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;hasStart in interface SourceSpanOrBuilderpublic SourceSpan.SourceLocation getStart()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;getStart in interface SourceSpanOrBuilderpublic SourceSpan.Builder setStart(SourceSpan.SourceLocation value)
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;public SourceSpan.Builder setStart(SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;public SourceSpan.Builder mergeStart(SourceSpan.SourceLocation value)
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;public SourceSpan.Builder clearStart()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;public SourceSpan.SourceLocation.Builder getStartBuilder()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;public SourceSpan.SourceLocationOrBuilder getStartOrBuilder()
The location of the first character in this span.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;getStartOrBuilder in interface SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic SourceSpan.Builder setEnd(SourceSpan.SourceLocation value)
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;public SourceSpan.Builder setEnd(SourceSpan.SourceLocation.Builder builderForValue)
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;public SourceSpan.Builder mergeEnd(SourceSpan.SourceLocation value)
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;public SourceSpan.Builder clearEnd()
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;public SourceSpan.SourceLocation.Builder getEndBuilder()
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;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 SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic SourceSpan.Builder setUrl(String value)
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;value - The url to set.public SourceSpan.Builder clearUrl()
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;public SourceSpan.Builder setUrlBytes(com.google.protobuf.ByteString value)
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;value - The bytes for url to set.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 SourceSpanOrBuilderpublic 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 SourceSpanOrBuilderpublic SourceSpan.Builder setContext(String value)
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;value - The context to set.public SourceSpan.Builder clearContext()
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;public SourceSpan.Builder setContextBytes(com.google.protobuf.ByteString value)
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;value - The bytes for context to set.public final SourceSpan.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>public final SourceSpan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>