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 typesass.embedded_protocol.Value.HostFunction
-
-
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.HostFunction.Builder>
-
clear
public 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
public Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
getDefaultInstanceForType
public EmbeddedSass.Value.HostFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
public EmbeddedSass.Value.HostFunction build()
- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
public EmbeddedSass.Value.HostFunction buildPartial()
- Specified by:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
clone
public EmbeddedSass.Value.HostFunction.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
public EmbeddedSass.Value.HostFunction.Builder clearField(Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfaceMessage.Builder
- Overrides:
clearField
in classGeneratedMessageV3.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
clearOneof
public EmbeddedSass.Value.HostFunction.Builder clearOneof(Descriptors.OneofDescriptor oneof)
- 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
public EmbeddedSass.Value.HostFunction.Builder mergeFrom(Message other)
- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<EmbeddedSass.Value.HostFunction.Builder>
-
mergeFrom
public EmbeddedSass.Value.HostFunction.Builder mergeFrom(EmbeddedSass.Value.HostFunction other)
-
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
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;
- Parameters:
value
- The id to set.- Returns:
- This builder for chaining.
-
clearId
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;
- Returns:
- This builder for chaining.
-
getSignature
public String getSignature()
The signatures for this function. This must be a valid Sass function signature that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Mandatory. 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
public ByteString getSignatureBytes()
The signatures for this function. This must be a valid Sass function signature that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Mandatory. 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
public EmbeddedSass.Value.HostFunction.Builder setSignature(String value)
The signatures for this function. This must be a valid Sass function signature that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Mandatory. 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
public EmbeddedSass.Value.HostFunction.Builder clearSignature()
The signatures for this function. This must be a valid Sass function signature that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Mandatory. 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
public EmbeddedSass.Value.HostFunction.Builder setSignatureBytes(ByteString value)
The signatures for this function. This must be a valid Sass function signature that could appear in after `@function` in a Sass stylesheet, such as `mix($color1, $color2, $weight: 50%)`. Mandatory. 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>
-
-