public static interface OutboundMessage.CanonicalizeRequestOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
String |
getContainingUrl()
The canonical URL of the [current source file] that contained the load
to be canonicalized.
|
com.google.protobuf.ByteString |
getContainingUrlBytes()
The canonical URL of the [current source file] that contained the load
to be canonicalized.
|
boolean |
getFromImport()
Whether this request comes from an `@import` rule.
|
int |
getId()
uint32 id = 1; |
int |
getImporterId()
The unique ID of the importer being invoked.
|
String |
getUrl()
The URL of the import to be canonicalized.
|
com.google.protobuf.ByteString |
getUrlBytes()
The URL of the import to be canonicalized.
|
boolean |
hasContainingUrl()
The canonical URL of the [current source file] that contained the load
to be canonicalized.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
int getId()
uint32 id = 1;
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`.
uint32 importer_id = 3;
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;
com.google.protobuf.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;
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;
boolean hasContainingUrl()
The canonical URL of the [current source file] that contained the load to be canonicalized. [current source file]: ../spec.md#current-source-file The compiler must set this if and only if `url` is relative or its scheme is an `Importer.non_canonical_scheme` for the importer being invoked, unless the current source file has no canonical URL. [non-canonical-proto]: #non_canonical_scheme
optional string containing_url = 6;
String getContainingUrl()
The canonical URL of the [current source file] that contained the load to be canonicalized. [current source file]: ../spec.md#current-source-file The compiler must set this if and only if `url` is relative or its scheme is an `Importer.non_canonical_scheme` for the importer being invoked, unless the current source file has no canonical URL. [non-canonical-proto]: #non_canonical_scheme
optional string containing_url = 6;
com.google.protobuf.ByteString getContainingUrlBytes()
The canonical URL of the [current source file] that contained the load to be canonicalized. [current source file]: ../spec.md#current-source-file The compiler must set this if and only if `url` is relative or its scheme is an `Importer.non_canonical_scheme` for the importer being invoked, unless the current source file has no canonical URL. [non-canonical-proto]: #non_canonical_scheme
optional string containing_url = 6;