public final class LayoutProperties extends GeneratedMessageV3 implements LayoutPropertiesOrBuilder
Card layout properties shared across all add-on host applications.
Protobuf type google.apps.script.type.LayoutProperties
Static Fields
PRIMARY_COLOR_FIELD_NUMBER
public static final int PRIMARY_COLOR_FIELD_NUMBER
Field Value
SECONDARY_COLOR_FIELD_NUMBER
public static final int SECONDARY_COLOR_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static LayoutProperties getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static LayoutProperties.Builder newBuilder()
Returns
newBuilder(LayoutProperties prototype)
public static LayoutProperties.Builder newBuilder(LayoutProperties prototype)
Parameter
Returns
public static LayoutProperties parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static LayoutProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static LayoutProperties parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LayoutProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static LayoutProperties parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LayoutProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LayoutProperties parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static LayoutProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static LayoutProperties parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static LayoutProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static LayoutProperties parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LayoutProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<LayoutProperties> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public LayoutProperties getDefaultInstanceForType()
Returns
getParserForType()
public Parser<LayoutProperties> getParserForType()
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.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public LayoutProperties.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LayoutProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public LayoutProperties.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions