Package sass.embedded_protocol
Class EmbeddedSass.InboundMessage.CompileRequest
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
sass.embedded_protocol.EmbeddedSass.InboundMessage.CompileRequest
- All Implemented Interfaces:
Message
,MessageLite
,MessageLiteOrBuilder
,MessageOrBuilder
,Serializable
,EmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Enclosing class:
- EmbeddedSass.InboundMessage
public static final class EmbeddedSass.InboundMessage.CompileRequest
extends GeneratedMessageV3
implements EmbeddedSass.InboundMessage.CompileRequestOrBuilder
A request that compiles an entrypoint to CSS.Protobuf type
sass.embedded_protocol.InboundMessage.CompileRequest
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A request that compiles an entrypoint to CSS.static final class
A wrapper message that represents either a user-defined importer or a load path on disk.static interface
static enum
static final class
An input stylesheet provided as plain text, rather than loaded from the filesystem.static interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,
BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Whether to encode the formatted message of errors and logs in ASCII.boolean
Whether to use terminal colors in the formatted message of errors and logs.boolean
Whether to emit a `@charset`/BOM for non-ASCII stylesheets.static final Descriptors.Descriptor
getGlobalFunctions
(int index) Signatures for custom global functions whose behavior is defined by the host.getGlobalFunctionsBytes
(int index) Signatures for custom global functions whose behavior is defined by the host.int
Signatures for custom global functions whose behavior is defined by the host.Signatures for custom global functions whose behavior is defined by the host.int
getId()
This compilation's request id.getImporters
(int index) Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it.int
Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it.Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it.getImportersOrBuilder
(int index) Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it.Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it.getPath()
A stylesheet loaded from the given path on the filesystem.A stylesheet loaded from the given path on the filesystem.boolean
Whether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).int
boolean
Whether to generate a source map.boolean
Whether to include sources in the generated sourcemapA stylesheet loaded from its contents.A stylesheet loaded from its contents.getStyle()
How to format the CSS output.int
How to format the CSS output.boolean
Whether to report all deprecation warnings or only the first few ones.int
hashCode()
boolean
hasPath()
A stylesheet loaded from the given path on the filesystem.boolean
A stylesheet loaded from its contents.protected GeneratedMessageV3.FieldAccessorTable
final boolean
protected Object
parseDelimitedFrom
(InputStream input) parseDelimitedFrom
(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom
(byte[] data) parseFrom
(byte[] data, ExtensionRegistryLite extensionRegistry) parseFrom
(ByteString data) parseFrom
(ByteString data, ExtensionRegistryLite extensionRegistry) parseFrom
(CodedInputStream input) parseFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) parseFrom
(InputStream input) parseFrom
(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom
(ByteBuffer data) parseFrom
(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()
void
writeTo
(CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
STRING_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
STYLE_FIELD_NUMBER
public static final int STYLE_FIELD_NUMBER- See Also:
-
SOURCE_MAP_FIELD_NUMBER
public static final int SOURCE_MAP_FIELD_NUMBER- See Also:
-
IMPORTERS_FIELD_NUMBER
public static final int IMPORTERS_FIELD_NUMBER- See Also:
-
GLOBAL_FUNCTIONS_FIELD_NUMBER
public static final int GLOBAL_FUNCTIONS_FIELD_NUMBER- See Also:
-
ALERT_COLOR_FIELD_NUMBER
public static final int ALERT_COLOR_FIELD_NUMBER- See Also:
-
ALERT_ASCII_FIELD_NUMBER
public static final int ALERT_ASCII_FIELD_NUMBER- See Also:
-
VERBOSE_FIELD_NUMBER
public static final int VERBOSE_FIELD_NUMBER- See Also:
-
QUIET_DEPS_FIELD_NUMBER
public static final int QUIET_DEPS_FIELD_NUMBER- See Also:
-
SOURCE_MAP_INCLUDE_SOURCES_FIELD_NUMBER
public static final int SOURCE_MAP_INCLUDE_SOURCES_FIELD_NUMBER- See Also:
-
CHARSET_FIELD_NUMBER
public static final int CHARSET_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3
-
getInputCase
- Specified by:
getInputCase
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getId
public int getId()This compilation's request id. This is included in messages sent from the compiler to the host. Mandatory.
uint32 id = 1;
- Specified by:
getId
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The id.
-
hasString
public boolean hasString()A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Specified by:
hasString
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- Whether the string field is set.
-
getString
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Specified by:
getString
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The string.
-
getStringOrBuilder
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Specified by:
getStringOrBuilder
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
hasPath
public boolean hasPath()A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
hasPath
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- Whether the path field is set.
-
getPath
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
getPath
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The path.
-
getPathBytes
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
getPathBytes
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The bytes for path.
-
getStyleValue
public int getStyleValue()How to format the CSS output.
.sass.embedded_protocol.OutputStyle style = 4;
- Specified by:
getStyleValue
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The enum numeric value on the wire for style.
-
getStyle
How to format the CSS output.
.sass.embedded_protocol.OutputStyle style = 4;
- Specified by:
getStyle
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The style.
-
getSourceMap
public boolean getSourceMap()Whether to generate a source map. Note that this will *not* add a source map comment to the stylesheet; that's up to the host or its users.
bool source_map = 5;
- Specified by:
getSourceMap
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The sourceMap.
-
getImportersList
Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
- Specified by:
getImportersList
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getImportersOrBuilderList
public List<? extends EmbeddedSass.InboundMessage.CompileRequest.ImporterOrBuilder> getImportersOrBuilderList()Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
- Specified by:
getImportersOrBuilderList
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getImportersCount
public int getImportersCount()Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
- Specified by:
getImportersCount
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getImporters
Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
- Specified by:
getImporters
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getImportersOrBuilder
public EmbeddedSass.InboundMessage.CompileRequest.ImporterOrBuilder getImportersOrBuilder(int index) Importers (including load paths on the filesystem) to use when resolving imports that can't be resolved relative to the file that contains it. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
- Specified by:
getImportersOrBuilder
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getGlobalFunctionsList
Signatures for custom global functions whose behavior is defined by the host. If this is not a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), or if it conflicts with a function name that's built into the Sass language, the compiler must treat the compilation as failed. Compilers must ensure that pure-Sass functions take precedence over custom global functions.
repeated string global_functions = 7;
- Specified by:
getGlobalFunctionsList
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- A list containing the globalFunctions.
-
getGlobalFunctionsCount
public int getGlobalFunctionsCount()Signatures for custom global functions whose behavior is defined by the host. If this is not a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), or if it conflicts with a function name that's built into the Sass language, the compiler must treat the compilation as failed. Compilers must ensure that pure-Sass functions take precedence over custom global functions.
repeated string global_functions = 7;
- Specified by:
getGlobalFunctionsCount
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The count of globalFunctions.
-
getGlobalFunctions
Signatures for custom global functions whose behavior is defined by the host. If this is not a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), or if it conflicts with a function name that's built into the Sass language, the compiler must treat the compilation as failed. Compilers must ensure that pure-Sass functions take precedence over custom global functions.
repeated string global_functions = 7;
- Specified by:
getGlobalFunctions
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The globalFunctions at the given index.
-
getGlobalFunctionsBytes
Signatures for custom global functions whose behavior is defined by the host. If this is not a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), or if it conflicts with a function name that's built into the Sass language, the compiler must treat the compilation as failed. Compilers must ensure that pure-Sass functions take precedence over custom global functions.
repeated string global_functions = 7;
- Specified by:
getGlobalFunctionsBytes
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the globalFunctions at the given index.
-
getAlertColor
public boolean getAlertColor()Whether to use terminal colors in the formatted message of errors and logs.
bool alert_color = 8;
- Specified by:
getAlertColor
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The alertColor.
-
getAlertAscii
public boolean getAlertAscii()Whether to encode the formatted message of errors and logs in ASCII.
bool alert_ascii = 9;
- Specified by:
getAlertAscii
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The alertAscii.
-
getVerbose
public boolean getVerbose()Whether to report all deprecation warnings or only the first few ones. If this is `false`, the compiler may choose not to send events for repeated deprecation warnings. If this is `true`, the compiler must emit an event for every deprecation warning it encounters.
bool verbose = 10;
- Specified by:
getVerbose
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The verbose.
-
getQuietDeps
public boolean getQuietDeps()Whether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).
bool quiet_deps = 11;
- Specified by:
getQuietDeps
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The quietDeps.
-
getSourceMapIncludeSources
public boolean getSourceMapIncludeSources()Whether to include sources in the generated sourcemap
bool source_map_include_sources = 12;
- Specified by:
getSourceMapIncludeSources
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The sourceMapIncludeSources.
-
getCharset
public boolean getCharset()Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
bool charset = 13;
- Specified by:
getCharset
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The charset.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3
-
writeTo
- Specified by:
writeTo
in interfaceMessageLite
- Overrides:
writeTo
in classGeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfaceMessageLite
- Overrides:
getSerializedSize
in classGeneratedMessageV3
-
equals
- Specified by:
equals
in interfaceMessage
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceMessage
- Overrides:
hashCode
in classAbstractMessage
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(byte[] data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static EmbeddedSass.InboundMessage.CompileRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
-
newBuilder
public static EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilder(EmbeddedSass.InboundMessage.CompileRequest prototype) -
toBuilder
- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-