Interface EmbeddedSass.OutboundMessage.CanonicalizeRequestOrBuilder

All Superinterfaces:
MessageLiteOrBuilder, MessageOrBuilder
All Known Implementing Classes:
EmbeddedSass.OutboundMessage.CanonicalizeRequest, EmbeddedSass.OutboundMessage.CanonicalizeRequest.Builder
Enclosing class:
EmbeddedSass.OutboundMessage

public static interface EmbeddedSass.OutboundMessage.CanonicalizeRequestOrBuilder extends MessageOrBuilder
  • Method Details

    • getId

      int getId()
      uint32 id = 1;
      Returns:
      The id.
    • getCompilationId

      int getCompilationId()
       The request id for the compilation that triggered the message. Mandatory.
       
      uint32 compilation_id = 2;
      Returns:
      The compilationId.
    • getImporterId

      int getImporterId()
       The unique ID of the importer being invoked. This must match an importer
       ID passed to this compilation in `CompileRequest.importers` or
       `CompileRequest.input.string.importer`. Mandatory.
       
      uint32 importer_id = 3;
      Returns:
      The importerId.
    • getUrl

      String getUrl()
       The URL of the import to be canonicalized. This may be either absolute or
       relative.
      
       When loading a URL, the compiler must first try resolving that URL
       relative to the canonical URL of the current file, and canonicalizing the
       result using the importer that loaded the current file. If this returns
       `null`, the compiler must then try canonicalizing the original URL with
       each importer in order until one returns something other than `null`.
       That is the result of the import.
       
      string url = 4;
      Returns:
      The url.
    • getUrlBytes

      ByteString getUrlBytes()
       The URL of the import to be canonicalized. This may be either absolute or
       relative.
      
       When loading a URL, the compiler must first try resolving that URL
       relative to the canonical URL of the current file, and canonicalizing the
       result using the importer that loaded the current file. If this returns
       `null`, the compiler must then try canonicalizing the original URL with
       each importer in order until one returns something other than `null`.
       That is the result of the import.
       
      string url = 4;
      Returns:
      The bytes for url.
    • getFromImport

      boolean getFromImport()
      / Whether this request comes from an `@import` rule.
       /
       / When evaluating `@import` rules, URLs should canonicalize to an
       / [import-only file] if one exists for the URL being canonicalized.
       / Otherwise, canonicalization should be identical for `@import` and `@use`
       / rules.
       /
       / [import-only file]: https://sass-lang.com/documentation/at-rules/import#import-only-files
       
      bool from_import = 5;
      Returns:
      The fromImport.