Class LayoutProperties.Builder (2.83.0)

public static final class LayoutProperties.Builder extends GeneratedMessage.Builder<LayoutProperties.Builder> implements LayoutPropertiesOrBuilder

Card layout properties shared across all add-on host applications.

Protobuf type google.apps.script.type.LayoutProperties

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LayoutProperties.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LayoutProperties.Builder
Overrides

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 String

The 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 ByteString

The 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 String

The 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 ByteString

The bytes for secondaryColor to set.

Returns
Type Description
LayoutProperties.Builder

This builder for chaining.