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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LayoutProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public LayoutProperties build()
Returns
buildPartial()
public LayoutProperties buildPartial()
Returns
clear()
public LayoutProperties.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public LayoutProperties.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LayoutProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public LayoutProperties.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public LayoutProperties getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(LayoutProperties other)
public LayoutProperties.Builder mergeFrom(LayoutProperties other)
Parameter
Returns
public LayoutProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public LayoutProperties.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LayoutProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LayoutProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LayoutProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final LayoutProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides