Class LayoutProperties (2.24.0)

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
TypeDescription
int

SECONDARY_COLOR_FIELD_NUMBER

public static final int SECONDARY_COLOR_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LayoutProperties getDefaultInstance()
Returns
TypeDescription
LayoutProperties

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LayoutProperties.Builder newBuilder()
Returns
TypeDescription
LayoutProperties.Builder

newBuilder(LayoutProperties prototype)

public static LayoutProperties.Builder newBuilder(LayoutProperties prototype)
Parameter
NameDescription
prototypeLayoutProperties
Returns
TypeDescription
LayoutProperties.Builder

parseDelimitedFrom(InputStream input)

public static LayoutProperties parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LayoutProperties parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LayoutProperties parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LayoutProperties parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LayoutProperties parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LayoutProperties parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LayoutProperties parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LayoutProperties
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LayoutProperties> parser()
Returns
TypeDescription
Parser<LayoutProperties>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LayoutProperties getDefaultInstanceForType()
Returns
TypeDescription
LayoutProperties

getParserForType()

public Parser<LayoutProperties> getParserForType()
Returns
TypeDescription
Parser<LayoutProperties>
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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LayoutProperties.Builder newBuilderForType()
Returns
TypeDescription
LayoutProperties.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LayoutProperties.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LayoutProperties.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LayoutProperties.Builder toBuilder()
Returns
TypeDescription
LayoutProperties.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException