Package sass.embedded_protocol
Class EmbeddedSass.Value.Calculation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
- sass.embedded_protocol.EmbeddedSass.Value.Calculation.Builder
-
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
,EmbeddedSass.Value.CalculationOrBuilder
- Enclosing class:
- EmbeddedSass.Value.Calculation
public static final class EmbeddedSass.Value.Calculation.Builder extends GeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder> implements EmbeddedSass.Value.CalculationOrBuilder
A SassScript calculation value. The compiler must send fully [simplified] calculations, meaning that simplifying it again will produce the same calculation. The host is not required to simplify calculations. [simplified]: https://github.com/sass/sass/tree/main/spec/types/calculation.md#simplifying-a-calculation The compiler must simplify any calculations it receives from the host before returning them from a function. If this simplification produces an error, it should be treated as though the function call threw that error. It should *not* be treated as a protocol error.
Protobuf typesass.embedded_protocol.Value.Calculation
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
clear
public EmbeddedSass.Value.Calculation.Builder clear()
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
getDefaultInstanceForType
public EmbeddedSass.Value.Calculation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public EmbeddedSass.Value.Calculation build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public EmbeddedSass.Value.Calculation buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public EmbeddedSass.Value.Calculation.Builder clone()
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
setField
public EmbeddedSass.Value.Calculation.Builder setField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
clearField
public EmbeddedSass.Value.Calculation.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
clearOneof
public EmbeddedSass.Value.Calculation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
setRepeatedField
public EmbeddedSass.Value.Calculation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
addRepeatedField
public EmbeddedSass.Value.Calculation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
mergeFrom
public EmbeddedSass.Value.Calculation.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.Value.Calculation.Builder>
-
mergeFrom
public EmbeddedSass.Value.Calculation.Builder mergeFrom(EmbeddedSass.Value.Calculation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
mergeFrom
public EmbeddedSass.Value.Calculation.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.Calculation.Builder>
- Throws:
IOException
-
getName
public String getName()
The calculation's name. Mandatory. The host may only set this to names that the Sass specification uses to create calculations.
string name = 1;
- Specified by:
getName
in interfaceEmbeddedSass.Value.CalculationOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
The calculation's name. Mandatory. The host may only set this to names that the Sass specification uses to create calculations.
string name = 1;
- Specified by:
getNameBytes
in interfaceEmbeddedSass.Value.CalculationOrBuilder
- Returns:
- The bytes for name.
-
setName
public EmbeddedSass.Value.Calculation.Builder setName(String value)
The calculation's name. Mandatory. The host may only set this to names that the Sass specification uses to create calculations.
string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public EmbeddedSass.Value.Calculation.Builder clearName()
The calculation's name. Mandatory. The host may only set this to names that the Sass specification uses to create calculations.
string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public EmbeddedSass.Value.Calculation.Builder setNameBytes(ByteString value)
The calculation's name. Mandatory. The host may only set this to names that the Sass specification uses to create calculations.
string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getArgumentsList
public List<EmbeddedSass.Value.Calculation.CalculationValue> getArgumentsList()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
- Specified by:
getArgumentsList
in interfaceEmbeddedSass.Value.CalculationOrBuilder
-
getArgumentsCount
public int getArgumentsCount()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
- Specified by:
getArgumentsCount
in interfaceEmbeddedSass.Value.CalculationOrBuilder
-
getArguments
public EmbeddedSass.Value.Calculation.CalculationValue getArguments(int index)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
- Specified by:
getArguments
in interfaceEmbeddedSass.Value.CalculationOrBuilder
-
setArguments
public EmbeddedSass.Value.Calculation.Builder setArguments(int index, EmbeddedSass.Value.Calculation.CalculationValue value)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
setArguments
public EmbeddedSass.Value.Calculation.Builder setArguments(int index, EmbeddedSass.Value.Calculation.CalculationValue.Builder builderForValue)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addArguments
public EmbeddedSass.Value.Calculation.Builder addArguments(EmbeddedSass.Value.Calculation.CalculationValue value)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addArguments
public EmbeddedSass.Value.Calculation.Builder addArguments(int index, EmbeddedSass.Value.Calculation.CalculationValue value)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addArguments
public EmbeddedSass.Value.Calculation.Builder addArguments(EmbeddedSass.Value.Calculation.CalculationValue.Builder builderForValue)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addArguments
public EmbeddedSass.Value.Calculation.Builder addArguments(int index, EmbeddedSass.Value.Calculation.CalculationValue.Builder builderForValue)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addAllArguments
public EmbeddedSass.Value.Calculation.Builder addAllArguments(Iterable<? extends EmbeddedSass.Value.Calculation.CalculationValue> values)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
clearArguments
public EmbeddedSass.Value.Calculation.Builder clearArguments()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
removeArguments
public EmbeddedSass.Value.Calculation.Builder removeArguments(int index)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
getArgumentsBuilder
public EmbeddedSass.Value.Calculation.CalculationValue.Builder getArgumentsBuilder(int index)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
getArgumentsOrBuilder
public EmbeddedSass.Value.Calculation.CalculationValueOrBuilder getArgumentsOrBuilder(int index)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
- Specified by:
getArgumentsOrBuilder
in interfaceEmbeddedSass.Value.CalculationOrBuilder
-
getArgumentsOrBuilderList
public List<? extends EmbeddedSass.Value.Calculation.CalculationValueOrBuilder> getArgumentsOrBuilderList()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
- Specified by:
getArgumentsOrBuilderList
in interfaceEmbeddedSass.Value.CalculationOrBuilder
-
addArgumentsBuilder
public EmbeddedSass.Value.Calculation.CalculationValue.Builder addArgumentsBuilder()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
addArgumentsBuilder
public EmbeddedSass.Value.Calculation.CalculationValue.Builder addArgumentsBuilder(int index)
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
getArgumentsBuilderList
public List<EmbeddedSass.Value.Calculation.CalculationValue.Builder> getArgumentsBuilderList()
The calculation's arguments. Mandatory. The host must use exactly the number of arguments used by the Sass specification for calculations with the given `name`.
repeated .sass.embedded_protocol.Value.Calculation.CalculationValue arguments = 2;
-
setUnknownFields
public final EmbeddedSass.Value.Calculation.Builder setUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
mergeUnknownFields
public final EmbeddedSass.Value.Calculation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.Calculation.Builder>
-
-