Class LayoutProperties.Builder (2.54.0)

public static final class LayoutProperties.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LayoutProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LayoutProperties.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public LayoutProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LayoutProperties.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LayoutProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
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.

clone()

public LayoutProperties.Builder clone()
Returns
Type Description
LayoutProperties.Builder
Overrides

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LayoutProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LayoutProperties.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LayoutProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LayoutProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LayoutProperties.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final LayoutProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LayoutProperties.Builder
Overrides