Package sass.embedded_protocol
Interface EmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
,MessageOrBuilder
- All Known Implementing Classes:
EmbeddedSass.InboundMessage.CompileRequest
,EmbeddedSass.InboundMessage.CompileRequest.Builder
- Enclosing class:
- EmbeddedSass.InboundMessage
public static interface EmbeddedSass.InboundMessage.CompileRequestOrBuilder extends MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
getAlertAscii()
Whether to encode the formatted message of errors and logs in ASCII.boolean
getAlertColor()
Whether to use terminal colors in the formatted message of errors and logs.String
getGlobalFunctions(int index)
Signatures for custom global functions whose behavior is defined by the host.ByteString
getGlobalFunctionsBytes(int index)
Signatures for custom global functions whose behavior is defined by the host.int
getGlobalFunctionsCount()
Signatures for custom global functions whose behavior is defined by the host.List<String>
getGlobalFunctionsList()
Signatures for custom global functions whose behavior is defined by the host.int
getId()
This compilation's request id.EmbeddedSass.InboundMessage.CompileRequest.Importer
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
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.List<EmbeddedSass.InboundMessage.CompileRequest.Importer>
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.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.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.EmbeddedSass.InboundMessage.CompileRequest.InputCase
getInputCase()
String
getPath()
A stylesheet loaded from the given path on the filesystem.ByteString
getPathBytes()
A stylesheet loaded from the given path on the filesystem.boolean
getQuietDeps()
Whether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).boolean
getSourceMap()
Whether to generate a source map.EmbeddedSass.InboundMessage.CompileRequest.StringInput
getString()
A stylesheet loaded from its contents.EmbeddedSass.InboundMessage.CompileRequest.StringInputOrBuilder
getStringOrBuilder()
A stylesheet loaded from its contents.EmbeddedSass.OutputStyle
getStyle()
How to format the CSS output.int
getStyleValue()
How to format the CSS output.boolean
getVerbose()
Whether to report all deprecation warnings or only the first few ones.boolean
hasPath()
A stylesheet loaded from the given path on the filesystem.boolean
hasString()
A stylesheet loaded from its contents.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getId
int getId()
This compilation's request id. This is included in messages sent from the compiler to the host. Mandatory.
uint32 id = 1;
- Returns:
- The id.
-
hasString
boolean hasString()
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Returns:
- Whether the string field is set.
-
getString
EmbeddedSass.InboundMessage.CompileRequest.StringInput getString()
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Returns:
- The string.
-
getStringOrBuilder
EmbeddedSass.InboundMessage.CompileRequest.StringInputOrBuilder getStringOrBuilder()
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
-
hasPath
boolean hasPath()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Returns:
- Whether the path field is set.
-
getPath
String getPath()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Returns:
- The path.
-
getPathBytes
ByteString getPathBytes()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Returns:
- The bytes for path.
-
getStyleValue
int getStyleValue()
How to format the CSS output.
.sass.embedded_protocol.OutputStyle style = 4;
- Returns:
- The enum numeric value on the wire for style.
-
getStyle
EmbeddedSass.OutputStyle getStyle()
How to format the CSS output.
.sass.embedded_protocol.OutputStyle style = 4;
- Returns:
- The style.
-
getSourceMap
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;
- Returns:
- The sourceMap.
-
getImportersList
List<EmbeddedSass.InboundMessage.CompileRequest.Importer> 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;
-
getImporters
EmbeddedSass.InboundMessage.CompileRequest.Importer 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. Each importer is checked in order until one recognizes the imported URL.
repeated .sass.embedded_protocol.InboundMessage.CompileRequest.Importer importers = 6;
-
getImportersCount
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;
-
getImportersOrBuilderList
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;
-
getImportersOrBuilder
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;
-
getGlobalFunctionsList
List<String> getGlobalFunctionsList()
Signatures for custom global functions whose behavior is defined by the host. These must be valid Sass function signatures that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Compilers must ensure that pure-Sass functions take precedence over custom global functions. They must also reject any custom function names that conflict with function names built into the Sass language.
repeated string global_functions = 7;
- Returns:
- A list containing the globalFunctions.
-
getGlobalFunctionsCount
int getGlobalFunctionsCount()
Signatures for custom global functions whose behavior is defined by the host. These must be valid Sass function signatures that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Compilers must ensure that pure-Sass functions take precedence over custom global functions. They must also reject any custom function names that conflict with function names built into the Sass language.
repeated string global_functions = 7;
- Returns:
- The count of globalFunctions.
-
getGlobalFunctions
String getGlobalFunctions(int index)
Signatures for custom global functions whose behavior is defined by the host. These must be valid Sass function signatures that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Compilers must ensure that pure-Sass functions take precedence over custom global functions. They must also reject any custom function names that conflict with function names built into the Sass language.
repeated string global_functions = 7;
- Parameters:
index
- The index of the element to return.- Returns:
- The globalFunctions at the given index.
-
getGlobalFunctionsBytes
ByteString getGlobalFunctionsBytes(int index)
Signatures for custom global functions whose behavior is defined by the host. These must be valid Sass function signatures that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Compilers must ensure that pure-Sass functions take precedence over custom global functions. They must also reject any custom function names that conflict with function names built into the Sass language.
repeated string global_functions = 7;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the globalFunctions at the given index.
-
getAlertColor
boolean getAlertColor()
Whether to use terminal colors in the formatted message of errors and logs.
bool alert_color = 8;
- Returns:
- The alertColor.
-
getAlertAscii
boolean getAlertAscii()
Whether to encode the formatted message of errors and logs in ASCII.
bool alert_ascii = 9;
- Returns:
- The alertAscii.
-
getVerbose
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;
- Returns:
- The verbose.
-
getQuietDeps
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;
- Returns:
- The quietDeps.
-
getInputCase
EmbeddedSass.InboundMessage.CompileRequest.InputCase getInputCase()
-
-