public static final class Value.ArgumentList extends com.google.protobuf.GeneratedMessageV3 implements 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 type
sass.embedded_protocol.Value.ArgumentList| Modifier and Type | Class and Description |
|---|---|
static class |
Value.ArgumentList.Builder
A SassScript argument list value.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONTENTS_FIELD_NUMBER |
static int |
ID_FIELD_NUMBER |
static int |
KEYWORDS_FIELD_NUMBER |
static int |
SEPARATOR_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKeywords(String key)
The argument list's keywords.
|
boolean |
equals(Object obj) |
Value |
getContents(int index)
The argument list's positional contents.
|
int |
getContentsCount()
The argument list's positional contents.
|
List<Value> |
getContentsList()
The argument list's positional contents.
|
ValueOrBuilder |
getContentsOrBuilder(int index)
The argument list's positional contents.
|
List<? extends ValueOrBuilder> |
getContentsOrBuilderList()
The argument list's positional contents.
|
static Value.ArgumentList |
getDefaultInstance() |
Value.ArgumentList |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getId()
An ID for this argument list that's unique within the scope of a given
`FunctionCallRequest`.
|
Map<String,Value> |
getKeywords()
Deprecated.
|
int |
getKeywordsCount()
The argument list's keywords.
|
Map<String,Value> |
getKeywordsMap()
The argument list's keywords.
|
Value |
getKeywordsOrDefault(String key,
Value defaultValue)
The argument list's keywords.
|
Value |
getKeywordsOrThrow(String key)
The argument list's keywords.
|
com.google.protobuf.Parser<Value.ArgumentList> |
getParserForType() |
ListSeparator |
getSeparator()
The type of separator for this list.
|
int |
getSeparatorValue()
The type of separator for this list.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Value.ArgumentList.Builder |
newBuilder() |
static Value.ArgumentList.Builder |
newBuilder(Value.ArgumentList prototype) |
Value.ArgumentList.Builder |
newBuilderForType() |
protected Value.ArgumentList.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Value.ArgumentList |
parseDelimitedFrom(InputStream input) |
static Value.ArgumentList |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value.ArgumentList |
parseFrom(byte[] data) |
static Value.ArgumentList |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value.ArgumentList |
parseFrom(ByteBuffer data) |
static Value.ArgumentList |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value.ArgumentList |
parseFrom(com.google.protobuf.ByteString data) |
static Value.ArgumentList |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value.ArgumentList |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Value.ArgumentList |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Value.ArgumentList |
parseFrom(InputStream input) |
static Value.ArgumentList |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Value.ArgumentList> |
parser() |
Value.ArgumentList.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int ID_FIELD_NUMBER
public static final int SEPARATOR_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER
public static final int KEYWORDS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getId in interface Value.ArgumentListOrBuilderpublic 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;getSeparatorValue in interface Value.ArgumentListOrBuilderpublic 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;getSeparator in interface Value.ArgumentListOrBuilderpublic List<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;getContentsList in interface Value.ArgumentListOrBuilderpublic List<? extends 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;getContentsOrBuilderList in interface Value.ArgumentListOrBuilderpublic 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;getContentsCount in interface Value.ArgumentListOrBuilderpublic 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;getContents in interface Value.ArgumentListOrBuilderpublic 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;getContentsOrBuilder in interface Value.ArgumentListOrBuilderpublic int getKeywordsCount()
Value.ArgumentListOrBuilderThe 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;getKeywordsCount in interface Value.ArgumentListOrBuilderpublic 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;containsKeywords in interface Value.ArgumentListOrBuilder@Deprecated public Map<String,Value> getKeywords()
getKeywordsMap() instead.getKeywords in interface Value.ArgumentListOrBuilderpublic Map<String,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;getKeywordsMap in interface Value.ArgumentListOrBuilderpublic Value getKeywordsOrDefault(String key, 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;getKeywordsOrDefault in interface Value.ArgumentListOrBuilderpublic 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;getKeywordsOrThrow in interface Value.ArgumentListOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Value.ArgumentList parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Value.ArgumentList parseFrom(InputStream input) throws IOException
IOExceptionpublic static Value.ArgumentList parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Value.ArgumentList parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Value.ArgumentList parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Value.ArgumentList parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Value.ArgumentList parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Value.ArgumentList.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Value.ArgumentList.Builder newBuilder()
public static Value.ArgumentList.Builder newBuilder(Value.ArgumentList prototype)
public Value.ArgumentList.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Value.ArgumentList.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Value.ArgumentList getDefaultInstance()
public static com.google.protobuf.Parser<Value.ArgumentList> parser()
public com.google.protobuf.Parser<Value.ArgumentList> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Value.ArgumentList getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder