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 Details

    • 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

       A stylesheet loaded from its contents.
       
      .sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
      Returns:
      The string.
    • 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

       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

       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

       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

       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

       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.
       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;
      Returns:
      A list containing the globalFunctions.
    • getGlobalFunctionsCount

      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;
      Returns:
      The count of globalFunctions.
    • getGlobalFunctions

      String getGlobalFunctions(int index)
       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;
      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.
       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;
      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.
    • getSourceMapIncludeSources

      boolean getSourceMapIncludeSources()
       Whether to include sources in the generated sourcemap
       
      bool source_map_include_sources = 12;
      Returns:
      The sourceMapIncludeSources.
    • getCharset

      boolean getCharset()
       Whether to emit a `@charset`/BOM for non-ASCII stylesheets.
       
      bool charset = 13;
      Returns:
      The charset.
    • getInputCase