Package sass.embedded_protocol
Class EmbeddedSass.SourceSpan.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
sass.embedded_protocol.EmbeddedSass.SourceSpan.Builder
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
,EmbeddedSass.SourceSpanOrBuilder
- Enclosing class:
- EmbeddedSass.SourceSpan
public static final class EmbeddedSass.SourceSpan.Builder
extends GeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
implements EmbeddedSass.SourceSpanOrBuilder
A chunk of a source file.Protobuf type
sass.embedded_protocol.SourceSpan
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(Descriptors.FieldDescriptor field, Object value) build()
clear()
Additional source text surrounding this span.clearEnd()
The location of the first character after this span.The location of the first character in this span.The text covered by the source span.clearUrl()
The URL of the file to which this span refers.clone()
Additional source text surrounding this span.Additional source text surrounding this span.static final Descriptors.Descriptor
getEnd()
The location of the first character after this span.The location of the first character after this span.The location of the first character after this span.getStart()
The location of the first character in this span.The location of the first character in this span.The location of the first character in this span.getText()
The text covered by the source span.The text covered by the source span.getUrl()
The URL of the file to which this span refers.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 GeneratedMessageV3.FieldAccessorTable
final boolean
The location of the first character after this span.mergeFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeFrom
(EmbeddedSass.SourceSpan other) The location of the first character in this span.mergeUnknownFields
(UnknownFieldSet unknownFields) setContext
(String value) Additional source text surrounding this span.setContextBytes
(ByteString value) Additional source text surrounding this span.The location of the first character after this span.setEnd
(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue) The location of the first character after this span.setField
(Descriptors.FieldDescriptor field, Object value) setRepeatedField
(Descriptors.FieldDescriptor field, int index, Object value) The location of the first character in this span.setStart
(EmbeddedSass.SourceSpan.SourceLocation.Builder builderForValue) The location of the first character in this span.The text covered by the source span.setTextBytes
(ByteString value) The text covered by the source span.setUnknownFields
(UnknownFieldSet unknownFields) The URL of the file to which this span refers.setUrlBytes
(ByteString value) The URL of the file to which this span refers.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clear
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
setField
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clearField
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
setRepeatedField
public EmbeddedSass.SourceSpan.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
addRepeatedField
public EmbeddedSass.SourceSpan.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeFrom
public EmbeddedSass.SourceSpan.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.SourceSpan.Builder>
- Throws:
IOException
-
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;
- Specified by:
getText
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The text.
-
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;
- Specified by:
getTextBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for text.
-
setText
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;
- Parameters:
value
- The text to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setTextBytes
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;
- Parameters:
value
- The bytes for text to set.- Returns:
- This builder for chaining.
-
hasStart
public boolean hasStart()The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
- Specified by:
hasStart
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
- Specified by:
getStart
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The start.
-
setStart
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
setStart
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;
-
mergeStart
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
clearStart
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
getStartBuilder
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
getStartOrBuilder
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
- Specified by:
getStartOrBuilder
in interfaceEmbeddedSass.SourceSpanOrBuilder
-
hasEnd
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;
- Specified by:
hasEnd
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- Whether the end field is set.
-
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;
- Specified by:
getEnd
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The end.
-
setEnd
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;
-
setEnd
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;
-
mergeEnd
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;
-
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;
-
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;
-
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;
- Specified by:
getEndOrBuilder
in interfaceEmbeddedSass.SourceSpanOrBuilder
-
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;
- Specified by:
getUrl
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The url.
-
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;
- Specified by:
getUrlBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for url.
-
setUrl
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;
- Parameters:
value
- The url to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setUrlBytes
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;
- Parameters:
value
- The bytes for url to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getContext
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The context.
-
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;
- Specified by:
getContextBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for context.
-
setContext
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;
- Parameters:
value
- The context to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setContextBytes
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;
- Parameters:
value
- The bytes for context to set.- Returns:
- This builder for chaining.
-
setUnknownFields
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-