public static final class EmbeddedSass.SourceSpan.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder> implements EmbeddedSass.SourceSpanOrBuilder
A chunk of a source file.Protobuf type
sass.embedded_protocol.SourceSpan
Modifier and Type | Method and Description |
---|---|
EmbeddedSass.SourceSpan.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EmbeddedSass.SourceSpan |
build() |
EmbeddedSass.SourceSpan |
buildPartial() |
EmbeddedSass.SourceSpan.Builder |
clear() |
EmbeddedSass.SourceSpan.Builder |
clearContext()
Additional source text surrounding this span.
|
EmbeddedSass.SourceSpan.Builder |
clearEnd()
The location of the first character after this span.
|
EmbeddedSass.SourceSpan.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EmbeddedSass.SourceSpan.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EmbeddedSass.SourceSpan.Builder |
clearStart()
The location of the first character in this span.
|
EmbeddedSass.SourceSpan.Builder |
clearText()
The text covered by the source span.
|
EmbeddedSass.SourceSpan.Builder |
clearUrl()
The URL of the file to which this span refers.
|
EmbeddedSass.SourceSpan.Builder |
clone() |
String |
getContext()
Additional source text surrounding this span.
|
com.google.protobuf.ByteString |
getContextBytes()
Additional source text surrounding this span.
|
EmbeddedSass.SourceSpan |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
EmbeddedSass.SourceSpan.SourceLocation |
getEnd()
The location of the first character after this span.
|
EmbeddedSass.SourceSpan.SourceLocation.Builder |
getEndBuilder()
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.SourceLocation.Builder |
getStartBuilder()
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.
|
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() |
EmbeddedSass.SourceSpan.Builder |
mergeEnd(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character after this span.
|
EmbeddedSass.SourceSpan.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EmbeddedSass.SourceSpan.Builder |
mergeFrom(EmbeddedSass.SourceSpan other) |
EmbeddedSass.SourceSpan.Builder |
mergeFrom(com.google.protobuf.Message other) |
EmbeddedSass.SourceSpan.Builder |
mergeStart(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character in this span.
|
EmbeddedSass.SourceSpan.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EmbeddedSass.SourceSpan.Builder |
setContext(String value)
Additional source text surrounding this span.
|
EmbeddedSass.SourceSpan.Builder |
setContextBytes(com.google.protobuf.ByteString value)
Additional source text surrounding this span.
|
EmbeddedSass.SourceSpan.Builder |
setEnd(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character after this span.
|
EmbeddedSass.SourceSpan.Builder |
setEnd(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character after this span.
|
EmbeddedSass.SourceSpan.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EmbeddedSass.SourceSpan.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EmbeddedSass.SourceSpan.Builder |
setStart(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character in this span.
|
EmbeddedSass.SourceSpan.Builder |
setStart(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character in this span.
|
EmbeddedSass.SourceSpan.Builder |
setText(String value)
The text covered by the source span.
|
EmbeddedSass.SourceSpan.Builder |
setTextBytes(com.google.protobuf.ByteString value)
The text covered by the source span.
|
EmbeddedSass.SourceSpan.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EmbeddedSass.SourceSpan.Builder |
setUrl(String value)
The URL of the file to which this span refers.
|
EmbeddedSass.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, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.SourceSpan getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public EmbeddedSass.SourceSpan build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public EmbeddedSass.SourceSpan buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.SourceSpan.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.SourceSpan.Builder mergeFrom(EmbeddedSass.SourceSpan other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
public EmbeddedSass.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<EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.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. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
hasStart
in interface EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.SourceSpan.SourceLocation getStart()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
getStart
in interface EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.SourceSpan.Builder setStart(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
public EmbeddedSass.SourceSpan.Builder setStart(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue)
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
public EmbeddedSass.SourceSpan.Builder mergeStart(EmbeddedSass.SourceSpan.SourceLocation value)
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
public EmbeddedSass.SourceSpan.Builder clearStart()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
public EmbeddedSass.SourceSpan.SourceLocation.Builder getStartBuilder()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
public EmbeddedSass.SourceSpan.SourceLocationOrBuilder getStartOrBuilder()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
getStartOrBuilder
in interface EmbeddedSass.SourceSpanOrBuilder
public 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;
hasEnd
in interface EmbeddedSass.SourceSpanOrBuilder
public 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;
getEnd
in interface EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.SourceSpan.Builder setEnd(EmbeddedSass.SourceSpan.SourceLocation value)
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;
public EmbeddedSass.SourceSpan.Builder setEnd(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue)
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;
public EmbeddedSass.SourceSpan.Builder mergeEnd(EmbeddedSass.SourceSpan.SourceLocation value)
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;
public EmbeddedSass.SourceSpan.Builder clearEnd()
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;
public EmbeddedSass.SourceSpan.SourceLocation.Builder getEndBuilder()
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;
public 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;
getEndOrBuilder
in interface EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.SourceSpanOrBuilder
public EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.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 EmbeddedSass.SourceSpan.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
public final EmbeddedSass.SourceSpan.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>