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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public 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.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>
public SourceSpan getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public SourceSpan build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public SourceSpan buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public SourceSpan.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
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.Builder
setField
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.Builder
clearField
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.Builder
clearOneof
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.Builder
setRepeatedField
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.Builder
addRepeatedField
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.Builder
mergeFrom
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.MessageLiteOrBuilder
isInitialized
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.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<SourceSpan.Builder>
IOException
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 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 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.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 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.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 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 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 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 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.Builder
setUnknownFields
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.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<SourceSpan.Builder>