Package sass.embedded_protocol
Class EmbeddedSass.Value.HostFunction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
sass.embedded_protocol.EmbeddedSass.Value.HostFunction.Builder
- All Implemented Interfaces:
Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
,EmbeddedSass.Value.HostFunctionOrBuilder
- Enclosing class:
- EmbeddedSass.Value.HostFunction
public static final class EmbeddedSass.Value.HostFunction.Builder
extends GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
implements EmbeddedSass.Value.HostFunctionOrBuilder
An anonymous custom function defined in the host. New `HostFunction`s may only be created by the host, and `HostFunction`s may *never* be passed from the compiler to the host. The compiler must instead pass a `CompilerFunction` that wraps the `HostFunction`.Protobuf type
sass.embedded_protocol.Value.HostFunction
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(Descriptors.FieldDescriptor field, Object value) build()
clear()
clearId()
A unique ID for this function.The signature for this function.clone()
static final Descriptors.Descriptor
int
getId()
A unique ID for this function.The signature for this function.The signature for this function.protected GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) mergeUnknownFields
(UnknownFieldSet unknownFields) setField
(Descriptors.FieldDescriptor field, Object value) setId
(int value) A unique ID for this function.setRepeatedField
(Descriptors.FieldDescriptor field, int index, Object value) setSignature
(String value) The signature for this function.setSignatureBytes
(ByteString value) The signature for this function.setUnknownFields
(UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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 Details
-
getDescriptor
-
internalGetFieldAccessorTable
- Specified by:
internalGetFieldAccessorTable
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
clear
- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
getDescriptorForType
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
- Specified by:
clone
in interfaceMessage.Builder
- Specified by:
clone
in interfaceMessageLite.Builder
- Overrides:
clone
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
setField
public EmbeddedSass.Value.HostFunction.Builder setField(Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfaceMessage.Builder
- Overrides:
setField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
clearField
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfaceMessage.Builder
- Overrides:
clearOneof
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
setRepeatedField
public EmbeddedSass.Value.HostFunction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfaceMessage.Builder
- Overrides:
setRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
addRepeatedField
public EmbeddedSass.Value.HostFunction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfaceMessage.Builder
- Overrides:
addRepeatedField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
mergeFrom
public EmbeddedSass.Value.HostFunction.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.HostFunction.Builder>
- Throws:
IOException
-
getId
public int getId()A unique ID for this function. The compiler must pass this ID as `OutboundRequest.FunctionCallRequest.id` when invoking this function. The host is responsible for generating this ID and ensuring it's unique across all functions for *all* compilations. Mandatory.
uint32 id = 1;
- Specified by:
getId
in interfaceEmbeddedSass.Value.HostFunctionOrBuilder
- Returns:
- The id.
-
setId
A unique ID for this function. The compiler must pass this ID as `OutboundRequest.FunctionCallRequest.id` when invoking this function. The host is responsible for generating this ID and ensuring it's unique across all functions for *all* compilations. Mandatory.
uint32 id = 1;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
A unique ID for this function. The compiler must pass this ID as `OutboundRequest.FunctionCallRequest.id` when invoking this function. The host is responsible for generating this ID and ensuring it's unique across all functions for *all* compilations. Mandatory.
uint32 id = 1;
- Returns:
- This builder for chaining.
-
getSignature
The signature for this function. Mandatory. If this isn't a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), the compiler must treat it as though the function that returned this `HostFunction` threw an error. > This ensures that the host doesn't need to be able to correctly parse > the entire function declaration syntax. The compiler may not invoke the function by its name, since it's not guaranteed to be globally unique. However, it may use the name to generate the string representation of this function.
string signature = 2;
- Specified by:
getSignature
in interfaceEmbeddedSass.Value.HostFunctionOrBuilder
- Returns:
- The signature.
-
getSignatureBytes
The signature for this function. Mandatory. If this isn't a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), the compiler must treat it as though the function that returned this `HostFunction` threw an error. > This ensures that the host doesn't need to be able to correctly parse > the entire function declaration syntax. The compiler may not invoke the function by its name, since it's not guaranteed to be globally unique. However, it may use the name to generate the string representation of this function.
string signature = 2;
- Specified by:
getSignatureBytes
in interfaceEmbeddedSass.Value.HostFunctionOrBuilder
- Returns:
- The bytes for signature.
-
setSignature
The signature for this function. Mandatory. If this isn't a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), the compiler must treat it as though the function that returned this `HostFunction` threw an error. > This ensures that the host doesn't need to be able to correctly parse > the entire function declaration syntax. The compiler may not invoke the function by its name, since it's not guaranteed to be globally unique. However, it may use the name to generate the string representation of this function.
string signature = 2;
- Parameters:
value
- The signature to set.- Returns:
- This builder for chaining.
-
clearSignature
The signature for this function. Mandatory. If this isn't a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), the compiler must treat it as though the function that returned this `HostFunction` threw an error. > This ensures that the host doesn't need to be able to correctly parse > the entire function declaration syntax. The compiler may not invoke the function by its name, since it's not guaranteed to be globally unique. However, it may use the name to generate the string representation of this function.
string signature = 2;
- Returns:
- This builder for chaining.
-
setSignatureBytes
The signature for this function. Mandatory. If this isn't a valid Sass function signature that could appear after `@function` in a Sass stylesheet (such as `mix($color1, $color2, $weight: 50%)`), the compiler must treat it as though the function that returned this `HostFunction` threw an error. > This ensures that the host doesn't need to be able to correctly parse > the entire function declaration syntax. The compiler may not invoke the function by its name, since it's not guaranteed to be globally unique. However, it may use the name to generate the string representation of this function.
string signature = 2;
- Parameters:
value
- The bytes for signature to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final EmbeddedSass.Value.HostFunction.Builder setUnknownFields(UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfaceMessage.Builder
- Overrides:
setUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
mergeUnknownFields
public final EmbeddedSass.Value.HostFunction.Builder mergeUnknownFields(UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfaceMessage.Builder
- Overrides:
mergeUnknownFields
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-