public static final class EmbeddedSass.Value.HostFunction.Builder extends com.google.protobuf.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
Modifier and Type | Method and Description |
---|---|
EmbeddedSass.Value.HostFunction |
build() |
EmbeddedSass.Value.HostFunction |
buildPartial() |
EmbeddedSass.Value.HostFunction.Builder |
clear() |
EmbeddedSass.Value.HostFunction.Builder |
clearId()
A unique ID for this function.
|
EmbeddedSass.Value.HostFunction.Builder |
clearSignature()
The signature for this function.
|
EmbeddedSass.Value.HostFunction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
int |
getId()
A unique ID for this function.
|
String |
getSignature()
The signature for this function.
|
com.google.protobuf.ByteString |
getSignatureBytes()
The signature for this function.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EmbeddedSass.Value.HostFunction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EmbeddedSass.Value.HostFunction.Builder |
mergeFrom(EmbeddedSass.Value.HostFunction other) |
EmbeddedSass.Value.HostFunction.Builder |
mergeFrom(com.google.protobuf.Message other) |
EmbeddedSass.Value.HostFunction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EmbeddedSass.Value.HostFunction.Builder |
setId(int value)
A unique ID for this function.
|
EmbeddedSass.Value.HostFunction.Builder |
setSignature(String value)
The signature for this function.
|
EmbeddedSass.Value.HostFunction.Builder |
setSignatureBytes(com.google.protobuf.ByteString value)
The signature for this function.
|
EmbeddedSass.Value.HostFunction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
public EmbeddedSass.Value.HostFunction.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.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.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
public EmbeddedSass.Value.HostFunction getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public EmbeddedSass.Value.HostFunction build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public EmbeddedSass.Value.HostFunction buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public EmbeddedSass.Value.HostFunction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<EmbeddedSass.Value.HostFunction.Builder>
public EmbeddedSass.Value.HostFunction.Builder mergeFrom(EmbeddedSass.Value.HostFunction other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
public EmbeddedSass.Value.HostFunction.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<EmbeddedSass.Value.HostFunction.Builder>
IOException
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;
getId
in interface EmbeddedSass.Value.HostFunctionOrBuilder
public EmbeddedSass.Value.HostFunction.Builder setId(int value)
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;
value
- The id to set.public EmbeddedSass.Value.HostFunction.Builder 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;
public String 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;
getSignature
in interface EmbeddedSass.Value.HostFunctionOrBuilder
public com.google.protobuf.ByteString 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;
getSignatureBytes
in interface EmbeddedSass.Value.HostFunctionOrBuilder
public EmbeddedSass.Value.HostFunction.Builder setSignature(String value)
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;
value
- The signature to set.public EmbeddedSass.Value.HostFunction.Builder 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;
public EmbeddedSass.Value.HostFunction.Builder setSignatureBytes(com.google.protobuf.ByteString value)
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;
value
- The bytes for signature to set.public final EmbeddedSass.Value.HostFunction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
public final EmbeddedSass.Value.HostFunction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>