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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public LayoutProperties.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public LayoutProperties build()
buildPartial()
public LayoutProperties buildPartial()
clear()
public LayoutProperties.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public LayoutProperties.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public LayoutProperties.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
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;
clone()
public LayoutProperties.Builder clone()
Overrides
getDefaultInstanceForType()
public LayoutProperties getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(LayoutProperties other)
public LayoutProperties.Builder mergeFrom(LayoutProperties other)
public LayoutProperties.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public LayoutProperties.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final LayoutProperties.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public LayoutProperties.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public LayoutProperties.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final LayoutProperties.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides