Class LayoutProperties.Builder (2.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LayoutProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LayoutProperties.Builder
Overrides

build()

public LayoutProperties build()
Returns
TypeDescription
LayoutProperties

buildPartial()

public LayoutProperties buildPartial()
Returns
TypeDescription
LayoutProperties

clear()

public LayoutProperties.Builder clear()
Returns
TypeDescription
LayoutProperties.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public LayoutProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LayoutProperties.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LayoutProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
LayoutProperties.Builder

This builder for chaining.

clone()

public LayoutProperties.Builder clone()
Returns
TypeDescription
LayoutProperties.Builder
Overrides

getDefaultInstanceForType()

public LayoutProperties getDefaultInstanceForType()
Returns
TypeDescription
LayoutProperties

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for secondaryColor.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LayoutProperties other)

public LayoutProperties.Builder mergeFrom(LayoutProperties other)
Parameter
NameDescription
otherLayoutProperties
Returns
TypeDescription
LayoutProperties.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LayoutProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LayoutProperties.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LayoutProperties.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LayoutProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LayoutProperties.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public LayoutProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The primaryColor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for primaryColor to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The secondaryColor to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for secondaryColor to set.

Returns
TypeDescription
LayoutProperties.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final LayoutProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LayoutProperties.Builder
Overrides