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 typesass.embedded_protocol.SourceSpan
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, 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.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clear
public 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
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
getDefaultInstanceForType
public EmbeddedSass.SourceSpan getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public EmbeddedSass.SourceSpan build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public EmbeddedSass.SourceSpan buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public EmbeddedSass.SourceSpan.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
setField
public EmbeddedSass.SourceSpan.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clearField
public EmbeddedSass.SourceSpan.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
clearOneof
public EmbeddedSass.SourceSpan.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- 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
public EmbeddedSass.SourceSpan.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeFrom
public EmbeddedSass.SourceSpan.Builder mergeFrom(EmbeddedSass.SourceSpan other)
-
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
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;
- Specified by:
getText
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The text.
-
getTextBytes
public 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;
- Specified by:
getTextBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for text.
-
setText
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;
- Parameters:
value
- The text to set.- Returns:
- This builder for chaining.
-
clearText
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;
- Returns:
- This builder for chaining.
-
setTextBytes
public EmbeddedSass.SourceSpan.Builder setTextBytes(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;
- 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
public EmbeddedSass.SourceSpan.SourceLocation 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
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;
-
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
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;
-
clearStart
public EmbeddedSass.SourceSpan.Builder clearStart()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
getStartBuilder
public EmbeddedSass.SourceSpan.SourceLocation.Builder getStartBuilder()
The location of the first character in this span. Mandatory.
.sass.embedded_protocol.SourceSpan.SourceLocation start = 2;
-
getStartOrBuilder
public EmbeddedSass.SourceSpan.SourceLocationOrBuilder 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
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;
- Specified by:
getEnd
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The end.
-
setEnd
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;
-
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
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;
-
clearEnd
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;
-
getEndBuilder
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;
-
getEndOrBuilder
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;
- Specified by:
getEndOrBuilder
in interfaceEmbeddedSass.SourceSpanOrBuilder
-
getUrl
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;
- Specified by:
getUrl
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The url.
-
getUrlBytes
public 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;
- Specified by:
getUrlBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for url.
-
setUrl
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;
- Parameters:
value
- The url to set.- Returns:
- This builder for chaining.
-
clearUrl
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;
- Returns:
- This builder for chaining.
-
setUrlBytes
public EmbeddedSass.SourceSpan.Builder setUrlBytes(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;
- Parameters:
value
- The bytes for url to set.- Returns:
- This builder for chaining.
-
getContext
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;
- Specified by:
getContext
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The context.
-
getContextBytes
public 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;
- Specified by:
getContextBytes
in interfaceEmbeddedSass.SourceSpanOrBuilder
- Returns:
- The bytes for context.
-
setContext
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;
- Parameters:
value
- The context to set.- Returns:
- This builder for chaining.
-
clearContext
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;
- Returns:
- This builder for chaining.
-
setContextBytes
public EmbeddedSass.SourceSpan.Builder setContextBytes(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;
- Parameters:
value
- The bytes for context to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EmbeddedSass.SourceSpan.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
mergeUnknownFields
public final EmbeddedSass.SourceSpan.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.SourceSpan.Builder>
-
-