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