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 classA request that compiles an entrypoint to CSS.static final classA wrapper message that represents either a user-defined importer or a load path on disk.static interfacestatic enumstatic final classAn input stylesheet provided as plain text, rather than loaded from the filesystem.static interfaceNested 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 intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanWhether to encode the formatted message of errors and logs in ASCII.booleanWhether to use terminal colors in the formatted message of errors and logs.booleanWhether to emit a `@charset`/BOM for non-ASCII stylesheets.static final Descriptors.DescriptorgetGlobalFunctions(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.intSignatures for custom global functions whose behavior is defined by the host.Signatures for custom global functions whose behavior is defined by the host.intgetId()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.intImporters (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.booleanWhether to omit events for deprecation warnings coming from dependencies (files loaded from a different importer than the input).intbooleanWhether to generate a source map.booleanWhether 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.intHow to format the CSS output.booleanWhether to report all deprecation warnings or only the first few ones.inthashCode()booleanhasPath()A stylesheet loaded from the given path on the filesystem.booleanA stylesheet loaded from its contents.protected GeneratedMessageV3.FieldAccessorTablefinal booleanprotected ObjectparseDelimitedFrom(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()voidwriteTo(CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods 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:
newInstancein classGeneratedMessageV3
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3
-
getInputCase
- Specified by:
getInputCasein 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:
getIdin 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:
hasStringin 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:
getStringin interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder- Returns:
- The string.
-
getStringOrBuilder
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;- Specified by:
getStringOrBuilderin interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
hasPath
public boolean hasPath()A stylesheet loaded from the given path on the filesystem.
string path = 3;- Specified by:
hasPathin 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:
getPathin interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder- Returns:
- The path.
-
getPathBytes
A stylesheet loaded from the given path on the filesystem.
string path = 3;- Specified by:
getPathBytesin 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:
getStyleValuein 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:
getStylein 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:
getSourceMapin 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:
getImportersListin 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:
getImportersOrBuilderListin 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:
getImportersCountin 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:
getImportersin 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:
getImportersOrBuilderin 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:
getGlobalFunctionsListin 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:
getGlobalFunctionsCountin 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:
getGlobalFunctionsin 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:
getGlobalFunctionsBytesin 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:
getAlertColorin 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:
getAlertAsciiin 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:
getVerbosein 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:
getQuietDepsin 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:
getSourceMapIncludeSourcesin 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:
getCharsetin interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder- Returns:
- The charset.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfaceMessageLite- Overrides:
writeToin classGeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfaceMessageLite- Overrides:
getSerializedSizein classGeneratedMessageV3
-
equals
- Specified by:
equalsin interfaceMessage- Overrides:
equalsin classAbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceMessage- Overrides:
hashCodein 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:
newBuilderForTypein interfaceMessage- Specified by:
newBuilderForTypein interfaceMessageLite
-
newBuilder
-
newBuilder
public static EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilder(EmbeddedSass.InboundMessage.CompileRequest prototype) -
toBuilder
- Specified by:
toBuilderin interfaceMessage- Specified by:
toBuilderin interfaceMessageLite
-
newBuilderForType
protected EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classGeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfaceMessage- Specified by:
getParserForTypein interfaceMessageLite- Overrides:
getParserForTypein classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-