Package sass.embedded_protocol
Class EmbeddedSass.Value.ArgumentList
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- sass.embedded_protocol.EmbeddedSass.Value.ArgumentList
-
- All Implemented Interfaces:
Message
,MessageLite
,MessageLiteOrBuilder
,MessageOrBuilder
,Serializable
,EmbeddedSass.Value.ArgumentListOrBuilder
- Enclosing class:
- EmbeddedSass.Value
public static final class EmbeddedSass.Value.ArgumentList extends GeneratedMessageV3 implements EmbeddedSass.Value.ArgumentListOrBuilder
A SassScript argument list value. This represents rest arguments passed to a function's `$arg...` parameter. Unlike a normal `List`, an argument list has an associated keywords map which tracks keyword arguments passed in alongside positional arguments. For each `ArgumentList` in `FunctionCallRequest.arguments` (including those nested within `List`s and `Map`s), the host must track whether its keyword arguments were accessed by the user. If they were, it must add its `ArgumentList.id` to `FunctionCallResponse.accessed_argument_lists`. The compiler must treat every `ArgumentList` whose `ArgumentList.id` appears in `FunctionCallResponse.accessed_argument_lists` as though it had been passed to `meta.keywords()`.
Protobuf typesass.embedded_protocol.Value.ArgumentList
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EmbeddedSass.Value.ArgumentList.Builder
A SassScript argument list value.-
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
CONTENTS_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
KEYWORDS_FIELD_NUMBER
static int
SEPARATOR_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, isStringEmpty, 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
-
SEPARATOR_FIELD_NUMBER
public static final int SEPARATOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONTENTS_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
KEYWORDS_FIELD_NUMBER
public static final int KEYWORDS_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()
-
internalGetMapField
protected MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classGeneratedMessageV3
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3
-
getId
public int getId()
An ID for this argument list that's unique within the scope of a given `FunctionCallRequest`. The special ID `0` is reserved for `ArgumentList`s created by the host, and may not be used by the compiler. These `ArgumentList`s do not need to have their IDs added to `FunctionCallResponse.accessed_argument_lists`, and the compiler should treat them as though their keywords have always been accessed.
uint32 id = 1;
- Specified by:
getId
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
- Returns:
- The id.
-
getSeparatorValue
public int getSeparatorValue()
The type of separator for this list. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
.sass.embedded_protocol.ListSeparator separator = 2;
- Specified by:
getSeparatorValue
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
- Returns:
- The enum numeric value on the wire for separator.
-
getSeparator
public EmbeddedSass.ListSeparator getSeparator()
The type of separator for this list. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
.sass.embedded_protocol.ListSeparator separator = 2;
- Specified by:
getSeparator
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
- Returns:
- The separator.
-
getContentsList
public List<EmbeddedSass.Value> getContentsList()
The argument list's positional contents. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
repeated .sass.embedded_protocol.Value contents = 3;
- Specified by:
getContentsList
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getContentsOrBuilderList
public List<? extends EmbeddedSass.ValueOrBuilder> getContentsOrBuilderList()
The argument list's positional contents. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
repeated .sass.embedded_protocol.Value contents = 3;
- Specified by:
getContentsOrBuilderList
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getContentsCount
public int getContentsCount()
The argument list's positional contents. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
repeated .sass.embedded_protocol.Value contents = 3;
- Specified by:
getContentsCount
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getContents
public EmbeddedSass.Value getContents(int index)
The argument list's positional contents. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
repeated .sass.embedded_protocol.Value contents = 3;
- Specified by:
getContents
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getContentsOrBuilder
public EmbeddedSass.ValueOrBuilder getContentsOrBuilder(int index)
The argument list's positional contents. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
repeated .sass.embedded_protocol.Value contents = 3;
- Specified by:
getContentsOrBuilder
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getKeywordsCount
public int getKeywordsCount()
Description copied from interface:EmbeddedSass.Value.ArgumentListOrBuilder
The argument list's keywords. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
map<string, .sass.embedded_protocol.Value> keywords = 4;
- Specified by:
getKeywordsCount
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
containsKeywords
public boolean containsKeywords(String key)
The argument list's keywords. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
map<string, .sass.embedded_protocol.Value> keywords = 4;
- Specified by:
containsKeywords
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getKeywords
@Deprecated public Map<String,EmbeddedSass.Value> getKeywords()
Deprecated.UsegetKeywordsMap()
instead.- Specified by:
getKeywords
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getKeywordsMap
public Map<String,EmbeddedSass.Value> getKeywordsMap()
The argument list's keywords. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
map<string, .sass.embedded_protocol.Value> keywords = 4;
- Specified by:
getKeywordsMap
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getKeywordsOrDefault
public EmbeddedSass.Value getKeywordsOrDefault(String key, EmbeddedSass.Value defaultValue)
The argument list's keywords. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
map<string, .sass.embedded_protocol.Value> keywords = 4;
- Specified by:
getKeywordsOrDefault
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
getKeywordsOrThrow
public EmbeddedSass.Value getKeywordsOrThrow(String key)
The argument list's keywords. The compiler must set this, but the host may omit it for `ArgumentList`s that were originally created by the compiler (that is, those with a non-0 ID).
map<string, .sass.embedded_protocol.Value> keywords = 4;
- Specified by:
getKeywordsOrThrow
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
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.Value.ArgumentList parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EmbeddedSass.Value.ArgumentList parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EmbeddedSass.Value.ArgumentList parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public EmbeddedSass.Value.ArgumentList.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
public static EmbeddedSass.Value.ArgumentList.Builder newBuilder()
-
newBuilder
public static EmbeddedSass.Value.ArgumentList.Builder newBuilder(EmbeddedSass.Value.ArgumentList prototype)
-
toBuilder
public EmbeddedSass.Value.ArgumentList.Builder toBuilder()
- Specified by:
toBuilder
in interfaceMessage
- Specified by:
toBuilder
in interfaceMessageLite
-
newBuilderForType
protected EmbeddedSass.Value.ArgumentList.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classGeneratedMessageV3
-
getDefaultInstance
public static EmbeddedSass.Value.ArgumentList getDefaultInstance()
-
parser
public static Parser<EmbeddedSass.Value.ArgumentList> parser()
-
getParserForType
public Parser<EmbeddedSass.Value.ArgumentList> getParserForType()
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
public EmbeddedSass.Value.ArgumentList getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
-