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 type
sass.embedded_protocol.Value.ArgumentList
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A SassScript argument list value.Nested 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 int
static final int
static final int
static final int
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
Modifier and TypeMethodDescriptionboolean
containsKeywords
(String key) The argument list's keywords.boolean
getContents
(int index) The argument list's positional contents.int
The argument list's positional contents.The argument list's positional contents.getContentsOrBuilder
(int index) The argument list's positional contents.List<? extends EmbeddedSass.ValueOrBuilder>
The argument list's positional contents.static final Descriptors.Descriptor
int
getId()
An ID for this argument list that's unique within the scope of a given `FunctionCallRequest`.Deprecated.int
The argument list's keywords.The argument list's keywords.getKeywordsOrDefault
(String key, EmbeddedSass.Value defaultValue) The argument list's keywords.getKeywordsOrThrow
(String key) The argument list's keywords.The type of separator for this list.int
The type of separator for this list.int
int
hashCode()
protected GeneratedMessageV3.FieldAccessorTable
protected MapField
internalGetMapField
(int number) final boolean
newBuilder
(EmbeddedSass.Value.ArgumentList prototype) protected EmbeddedSass.Value.ArgumentList.Builder
protected Object
parseDelimitedFrom
(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()
void
writeTo
(CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, 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, getUnknownFields, hasField, hasOneof
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
SEPARATOR_FIELD_NUMBER
public static final int SEPARATOR_FIELD_NUMBER- See Also:
-
CONTENTS_FIELD_NUMBER
public static final int CONTENTS_FIELD_NUMBER- See Also:
-
KEYWORDS_FIELD_NUMBER
public static final int KEYWORDS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstance
in classGeneratedMessageV3
-
getDescriptor
-
internalGetMapField
- Overrides:
internalGetMapField
in classGeneratedMessageV3
-
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
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
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
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
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
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
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.UsegetKeywordsMap()
instead.- Specified by:
getKeywords
in interfaceEmbeddedSass.Value.ArgumentListOrBuilder
-
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
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
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
- 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
- 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
- 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
- Throws:
IOException
-
parseFrom
public static EmbeddedSass.Value.ArgumentList parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfaceMessage
- Specified by:
newBuilderForType
in interfaceMessageLite
-
newBuilder
-
newBuilder
public static EmbeddedSass.Value.ArgumentList.Builder newBuilder(EmbeddedSass.Value.ArgumentList prototype) -
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
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfaceMessage
- Specified by:
getParserForType
in interfaceMessageLite
- Overrides:
getParserForType
in classGeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-