public static final class Value.ArgumentList.Builder extends com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder> 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 | Method and Description |
---|---|
Value.ArgumentList.Builder |
addAllContents(Iterable<? extends Value> values)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
addContents(int index,
Value.Builder builderForValue)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
addContents(int index,
Value value)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
addContents(Value.Builder builderForValue)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
addContents(Value value)
The argument list's positional contents.
|
Value.Builder |
addContentsBuilder()
The argument list's positional contents.
|
Value.Builder |
addContentsBuilder(int index)
The argument list's positional contents.
|
Value.ArgumentList |
build() |
Value.ArgumentList |
buildPartial() |
Value.ArgumentList.Builder |
clear() |
Value.ArgumentList.Builder |
clearContents()
The argument list's positional contents.
|
Value.ArgumentList.Builder |
clearId()
An ID for this argument list that's unique within the scope of a given
`FunctionCallRequest`.
|
Value.ArgumentList.Builder |
clearKeywords() |
Value.ArgumentList.Builder |
clearSeparator()
The type of separator for this list.
|
boolean |
containsKeywords(String key)
The argument list's keywords.
|
Value |
getContents(int index)
The argument list's positional contents.
|
Value.Builder |
getContentsBuilder(int index)
The argument list's positional contents.
|
List<Value.Builder> |
getContentsBuilderList()
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.
|
Value.ArgumentList |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.
|
Map<String,Value> |
getMutableKeywords()
Deprecated.
|
ListSeparator |
getSeparator()
The type of separator for this list.
|
int |
getSeparatorValue()
The type of separator for this list.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
Value.ArgumentList.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Value.ArgumentList.Builder |
mergeFrom(com.google.protobuf.Message other) |
Value.ArgumentList.Builder |
mergeFrom(Value.ArgumentList other) |
Value.ArgumentList.Builder |
putAllKeywords(Map<String,Value> values)
The argument list's keywords.
|
Value.ArgumentList.Builder |
putKeywords(String key,
Value value)
The argument list's keywords.
|
Value.Builder |
putKeywordsBuilderIfAbsent(String key)
The argument list's keywords.
|
Value.ArgumentList.Builder |
removeContents(int index)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
removeKeywords(String key)
The argument list's keywords.
|
Value.ArgumentList.Builder |
setContents(int index,
Value.Builder builderForValue)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
setContents(int index,
Value value)
The argument list's positional contents.
|
Value.ArgumentList.Builder |
setId(int value)
An ID for this argument list that's unique within the scope of a given
`FunctionCallRequest`.
|
Value.ArgumentList.Builder |
setSeparator(ListSeparator value)
The type of separator for this list.
|
Value.ArgumentList.Builder |
setSeparatorValue(int value)
The type of separator for this list.
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
public Value.ArgumentList.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
public Value.ArgumentList getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Value.ArgumentList build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Value.ArgumentList buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Value.ArgumentList.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Value.ArgumentList.Builder>
public Value.ArgumentList.Builder mergeFrom(Value.ArgumentList other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.Builder<Value.ArgumentList.Builder>
public Value.ArgumentList.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Value.ArgumentList.Builder>
IOException
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;
getId
in interface Value.ArgumentListOrBuilder
public Value.ArgumentList.Builder setId(int value)
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;
value
- The id to set.public Value.ArgumentList.Builder clearId()
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;
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;
getSeparatorValue
in interface Value.ArgumentListOrBuilder
public Value.ArgumentList.Builder setSeparatorValue(int value)
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;
value
- The enum numeric value on the wire for separator to set.public 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.ArgumentListOrBuilder
public Value.ArgumentList.Builder setSeparator(ListSeparator value)
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;
value
- The separator to set.public Value.ArgumentList.Builder clearSeparator()
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;
public 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.ArgumentListOrBuilder
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;
getContentsCount
in interface Value.ArgumentListOrBuilder
public 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.ArgumentListOrBuilder
public Value.ArgumentList.Builder setContents(int index, Value value)
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;
public Value.ArgumentList.Builder setContents(int index, Value.Builder builderForValue)
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;
public Value.ArgumentList.Builder addContents(Value value)
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;
public Value.ArgumentList.Builder addContents(int index, Value value)
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;
public Value.ArgumentList.Builder addContents(Value.Builder builderForValue)
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;
public Value.ArgumentList.Builder addContents(int index, Value.Builder builderForValue)
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;
public Value.ArgumentList.Builder addAllContents(Iterable<? extends Value> values)
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;
public Value.ArgumentList.Builder clearContents()
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;
public Value.ArgumentList.Builder removeContents(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;
public Value.Builder getContentsBuilder(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;
public 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.ArgumentListOrBuilder
public 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.ArgumentListOrBuilder
public Value.Builder addContentsBuilder()
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;
public Value.Builder addContentsBuilder(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;
public List<Value.Builder> getContentsBuilderList()
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;
public int getKeywordsCount()
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;
getKeywordsCount
in interface Value.ArgumentListOrBuilder
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;
containsKeywords
in interface Value.ArgumentListOrBuilder
@Deprecated public Map<String,Value> getKeywords()
getKeywordsMap()
instead.getKeywords
in interface Value.ArgumentListOrBuilder
public 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.ArgumentListOrBuilder
public 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.ArgumentListOrBuilder
public 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.ArgumentListOrBuilder
public Value.ArgumentList.Builder clearKeywords()
public Value.ArgumentList.Builder removeKeywords(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;
@Deprecated public Map<String,Value> getMutableKeywords()
public Value.ArgumentList.Builder putKeywords(String key, Value value)
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;
public Value.ArgumentList.Builder putAllKeywords(Map<String,Value> values)
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;
public Value.Builder putKeywordsBuilderIfAbsent(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;