- 2.83.0 (latest)
- 2.82.0
- 2.81.0
- 2.80.0
- 2.78.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.6
- 2.2.1
- 2.1.12
public static final class LayoutProperties.Builder extends GeneratedMessage.Builder<LayoutProperties.Builder> implements LayoutPropertiesOrBuilderCard layout properties shared across all add-on host applications.
Protobuf type google.apps.script.type.LayoutProperties
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LayoutProperties.BuilderImplements
LayoutPropertiesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public LayoutProperties build()| Returns | |
|---|---|
| Type | Description |
LayoutProperties |
|
buildPartial()
public LayoutProperties buildPartial()| Returns | |
|---|---|
| Type | Description |
LayoutProperties |
|
clear()
public LayoutProperties.Builder clear()| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
|
clearPrimaryColor()
public LayoutProperties.Builder clearPrimaryColor()The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
string primary_color = 1;
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |
clearSecondaryColor()
public LayoutProperties.Builder clearSecondaryColor()The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
string secondary_color = 2;
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public LayoutProperties getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LayoutProperties |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPrimaryColor()
public String getPrimaryColor()The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
string primary_color = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The primaryColor. |
getPrimaryColorBytes()
public ByteString getPrimaryColorBytes()The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
string primary_color = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for primaryColor. |
getSecondaryColor()
public String getSecondaryColor()The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
string secondary_color = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The secondaryColor. |
getSecondaryColorBytes()
public ByteString getSecondaryColorBytes()The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
string secondary_color = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for secondaryColor. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LayoutProperties other)
public LayoutProperties.Builder mergeFrom(LayoutProperties other)| Parameter | |
|---|---|
| Name | Description |
other |
LayoutProperties |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LayoutProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LayoutProperties.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
|
setPrimaryColor(String value)
public LayoutProperties.Builder setPrimaryColor(String value)The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
string primary_color = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe primaryColor to set. |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |
setPrimaryColorBytes(ByteString value)
public LayoutProperties.Builder setPrimaryColorBytes(ByteString value)The primary color of the add-on. It sets the color of toolbar. If no primary color is set explicitly, the default value provided by the framework is used.
string primary_color = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for primaryColor to set. |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |
setSecondaryColor(String value)
public LayoutProperties.Builder setSecondaryColor(String value)The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
string secondary_color = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe secondaryColor to set. |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |
setSecondaryColorBytes(ByteString value)
public LayoutProperties.Builder setSecondaryColorBytes(ByteString value)The secondary color of the add-on. It sets the color of buttons. If primary color is set but no secondary color is set, the secondary color is the same as the primary color. If neither primary color nor secondary color is set, the default value provided by the framework is used.
string secondary_color = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for secondaryColor to set. |
| Returns | |
|---|---|
| Type | Description |
LayoutProperties.Builder |
This builder for chaining. |