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 typesass.embedded_protocol.InboundMessage.CompileRequest
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmbeddedSass.InboundMessage.CompileRequest.Builder
A request that compiles an entrypoint to CSS.static class
EmbeddedSass.InboundMessage.CompileRequest.Importer
A wrapper message that represents either a user-defined importer or a load path on disk.static interface
EmbeddedSass.InboundMessage.CompileRequest.ImporterOrBuilder
static class
EmbeddedSass.InboundMessage.CompileRequest.InputCase
static class
EmbeddedSass.InboundMessage.CompileRequest.OutputStyle
Possible ways to format the CSS output.static class
EmbeddedSass.InboundMessage.CompileRequest.StringInput
An input stylesheet provided as plain text, rather than loaded from the filesystem.static interface
EmbeddedSass.InboundMessage.CompileRequest.StringInputOrBuilder
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description static int
GLOBAL_FUNCTIONS_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
IMPORTERS_FIELD_NUMBER
static int
PATH_FIELD_NUMBER
static int
SOURCE_MAP_FIELD_NUMBER
static int
STRING_FIELD_NUMBER
static int
STYLE_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
-
-
-
Field Detail
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_FIELD_NUMBER
public static final int STRING_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STYLE_FIELD_NUMBER
public static final int STYLE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_MAP_FIELD_NUMBER
public static final int SOURCE_MAP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IMPORTERS_FIELD_NUMBER
public static final int IMPORTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GLOBAL_FUNCTIONS_FIELD_NUMBER
public static final int GLOBAL_FUNCTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classGeneratedMessageV3
-
getUnknownFields
public final UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFields
in interfaceMessageOrBuilder
- Overrides:
getUnknownFields
in classGeneratedMessageV3
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3
-
getInputCase
public EmbeddedSass.InboundMessage.CompileRequest.InputCase getInputCase()
- Specified by:
getInputCase
in 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:
getId
in 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:
hasString
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- Whether the string field is set.
-
getString
public EmbeddedSass.InboundMessage.CompileRequest.StringInput getString()
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Specified by:
getString
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The string.
-
getStringOrBuilder
public EmbeddedSass.InboundMessage.CompileRequest.StringInputOrBuilder getStringOrBuilder()
A stylesheet loaded from its contents.
.sass.embedded_protocol.InboundMessage.CompileRequest.StringInput string = 2;
- Specified by:
getStringOrBuilder
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
hasPath
public boolean hasPath()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
hasPath
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- Whether the path field is set.
-
getPath
public String getPath()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
getPath
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The path.
-
getPathBytes
public ByteString getPathBytes()
A stylesheet loaded from the given path on the filesystem.
string path = 3;
- Specified by:
getPathBytes
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The bytes for path.
-
getStyleValue
public int getStyleValue()
How to format the CSS output.
.sass.embedded_protocol.InboundMessage.CompileRequest.OutputStyle style = 4;
- Specified by:
getStyleValue
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The enum numeric value on the wire for style.
-
getStyle
public EmbeddedSass.InboundMessage.CompileRequest.OutputStyle getStyle()
How to format the CSS output.
.sass.embedded_protocol.InboundMessage.CompileRequest.OutputStyle style = 4;
- Specified by:
getStyle
in 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:
getSourceMap
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The sourceMap.
-
getImportersList
public 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;
- Specified by:
getImportersList
in 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:
getImportersOrBuilderList
in 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:
getImportersCount
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getImporters
public 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;
- Specified by:
getImporters
in 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:
getImportersOrBuilder
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
-
getGlobalFunctionsList
public ProtocolStringList 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;
- Specified by:
getGlobalFunctionsList
in 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. 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;
- Specified by:
getGlobalFunctionsCount
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Returns:
- The count of globalFunctions.
-
getGlobalFunctions
public 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;
- Specified by:
getGlobalFunctions
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The globalFunctions at the given index.
-
getGlobalFunctionsBytes
public 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;
- Specified by:
getGlobalFunctionsBytes
in interfaceEmbeddedSass.InboundMessage.CompileRequestOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the globalFunctions at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3
-
writeTo
public void writeTo(CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfaceMessageLite
- Overrides:
writeTo
in classGeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfaceMessageLite
- Overrides:
getSerializedSize
in classGeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceMessage
- Overrides:
equals
in classAbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceMessage
- Overrides:
hashCode
in 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
public EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
public static EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilder()
-
newBuilder
public static EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilder(EmbeddedSass.InboundMessage.CompileRequest prototype)
-
toBuilder
public EmbeddedSass.InboundMessage.CompileRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected EmbeddedSass.InboundMessage.CompileRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
public static EmbeddedSass.InboundMessage.CompileRequest getDefaultInstance()
-
parser
public static Parser<EmbeddedSass.InboundMessage.CompileRequest> parser()
-
getParserForType
public Parser<EmbeddedSass.InboundMessage.CompileRequest> getParserForType()
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
public EmbeddedSass.InboundMessage.CompileRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
-