Class LayoutProperties.Builder

  • All Implemented Interfaces:
    LayoutPropertiesOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    LayoutProperties

    public static final class LayoutProperties.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
    implements LayoutPropertiesOrBuilder
     Card layout properties shared across all add-on host applications.
     
    Protobuf type google.apps.script.type.LayoutProperties
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • clear

        public LayoutProperties.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • getDefaultInstanceForType

        public LayoutProperties getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public LayoutProperties build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public LayoutProperties buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public LayoutProperties.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • setField

        public LayoutProperties.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • clearField

        public LayoutProperties.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • clearOneof

        public LayoutProperties.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • setRepeatedField

        public LayoutProperties.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • addRepeatedField

        public LayoutProperties.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • mergeFrom

        public LayoutProperties.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LayoutProperties.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • mergeFrom

        public LayoutProperties.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LayoutProperties.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getPrimaryColor in interface LayoutPropertiesOrBuilder
        Returns:
        The primaryColor.
      • getPrimaryColorBytes

        public com.google.protobuf.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;
        Specified by:
        getPrimaryColorBytes in interface LayoutPropertiesOrBuilder
        Returns:
        The bytes for primaryColor.
      • setPrimaryColor

        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;
        Parameters:
        value - The primaryColor to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setPrimaryColorBytes

        public LayoutProperties.Builder setPrimaryColorBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for primaryColor to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getSecondaryColor in interface LayoutPropertiesOrBuilder
        Returns:
        The secondaryColor.
      • getSecondaryColorBytes

        public com.google.protobuf.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;
        Specified by:
        getSecondaryColorBytes in interface LayoutPropertiesOrBuilder
        Returns:
        The bytes for secondaryColor.
      • setSecondaryColor

        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;
        Parameters:
        value - The secondaryColor to set.
        Returns:
        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:
        This builder for chaining.
      • setSecondaryColorBytes

        public LayoutProperties.Builder setSecondaryColorBytes​(com.google.protobuf.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;
        Parameters:
        value - The bytes for secondaryColor to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final LayoutProperties.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>
      • mergeUnknownFields

        public final LayoutProperties.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<LayoutProperties.Builder>