Package sass.embedded_protocol
Class EmbeddedSass.Value.ArgumentList.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
- sass.embedded_protocol.EmbeddedSass.Value.ArgumentList.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
,EmbeddedSass.Value.ArgumentListOrBuilder
- Enclosing class:
- EmbeddedSass.Value.ArgumentList
public static final class EmbeddedSass.Value.ArgumentList.Builder extends GeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder> 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
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
internalGetMutableMapField
protected MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
clear
public EmbeddedSass.Value.ArgumentList.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
getDefaultInstanceForType
public EmbeddedSass.Value.ArgumentList getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public EmbeddedSass.Value.ArgumentList build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public EmbeddedSass.Value.ArgumentList buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public EmbeddedSass.Value.ArgumentList.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
setField
public EmbeddedSass.Value.ArgumentList.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
clearField
public EmbeddedSass.Value.ArgumentList.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
clearOneof
public EmbeddedSass.Value.ArgumentList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
setRepeatedField
public EmbeddedSass.Value.ArgumentList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
addRepeatedField
public EmbeddedSass.Value.ArgumentList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
mergeFrom
public EmbeddedSass.Value.ArgumentList.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
mergeFrom
public EmbeddedSass.Value.ArgumentList.Builder mergeFrom(EmbeddedSass.Value.ArgumentList other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
mergeFrom
public EmbeddedSass.Value.ArgumentList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.Value.ArgumentList.Builder>
- Throws:
IOException
-
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.
-
setId
public EmbeddedSass.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;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
public EmbeddedSass.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;
- Returns:
- This builder for chaining.
-
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.
-
setSeparatorValue
public EmbeddedSass.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;
- Parameters:
value
- The enum numeric value on the wire for separator to set.- Returns:
- This builder for chaining.
-
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.
-
setSeparator
public EmbeddedSass.Value.ArgumentList.Builder setSeparator(EmbeddedSass.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;
- Parameters:
value
- The separator to set.- Returns:
- This builder for chaining.
-
clearSeparator
public EmbeddedSass.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;
- Returns:
- This builder for chaining.
-
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
-
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
-
setContents
public EmbeddedSass.Value.ArgumentList.Builder setContents(int index, EmbeddedSass.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;
-
setContents
public EmbeddedSass.Value.ArgumentList.Builder setContents(int index, EmbeddedSass.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;
-
addContents
public EmbeddedSass.Value.ArgumentList.Builder addContents(EmbeddedSass.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;
-
addContents
public EmbeddedSass.Value.ArgumentList.Builder addContents(int index, EmbeddedSass.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;
-
addContents
public EmbeddedSass.Value.ArgumentList.Builder addContents(EmbeddedSass.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;
-
addContents
public EmbeddedSass.Value.ArgumentList.Builder addContents(int index, EmbeddedSass.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;
-
addAllContents
public EmbeddedSass.Value.ArgumentList.Builder addAllContents(Iterable<? extends EmbeddedSass.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;
-
clearContents
public EmbeddedSass.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;
-
removeContents
public EmbeddedSass.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;
-
getContentsBuilder
public EmbeddedSass.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;
-
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
-
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
-
addContentsBuilder
public EmbeddedSass.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;
-
addContentsBuilder
public EmbeddedSass.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;
-
getContentsBuilderList
public List<EmbeddedSass.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;
-
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
-
clearKeywords
public EmbeddedSass.Value.ArgumentList.Builder clearKeywords()
-
removeKeywords
public EmbeddedSass.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;
-
getMutableKeywords
@Deprecated public Map<String,EmbeddedSass.Value> getMutableKeywords()
Deprecated.Use alternate mutation accessors instead.
-
putKeywords
public EmbeddedSass.Value.ArgumentList.Builder putKeywords(String key, EmbeddedSass.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;
-
putAllKeywords
public EmbeddedSass.Value.ArgumentList.Builder putAllKeywords(Map<String,EmbeddedSass.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;
-
setUnknownFields
public final EmbeddedSass.Value.ArgumentList.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
mergeUnknownFields
public final EmbeddedSass.Value.ArgumentList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.ArgumentList.Builder>
-
-