Show / Hide Table of Contents

Class Section

Represents a section in Google Chat. Sections help users organize their spaces. There are two types of sections:

  1. System Sections: These are predefined sections managed by Google Chat. Their resource names are fixed, and they cannot be created, deleted, or have their display_name modified. Examples include:

    • users/{user}/sections/default-direct-messages
    • users/{user}/sections/default-spaces
    • users/{user}/sections/default-apps
  2. Custom Sections: These are sections created and managed by the user. Creating a custom section using CreateSection requires a display_name. Custom sections can be updated using UpdateSection and deleted using DeleteSection.

Inheritance
object
Section
Implements
IMessage<Section>
IEquatable<Section>
IDeepCloneable<Section>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Section : IMessage<Section>, IEquatable<Section>, IDeepCloneable<Section>, IBufferMessage, IMessage

Constructors

Section()

Declaration
public Section()

Section(Section)

Declaration
public Section(Section other)
Parameters
Type Name Description
Section other

Properties

DisplayName

Optional. The section's display name. Only populated for sections of type CUSTOM_SECTION. Supports up to 80 characters. Required when creating a CUSTOM_SECTION.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
string

Name

Identifier. Resource name of the section.

For system sections, the section ID is a constant string:

  • DEFAULT_DIRECT_MESSAGES: users/{user}/sections/default-direct-messages
  • DEFAULT_SPACES: users/{user}/sections/default-spaces
  • DEFAULT_APPS: users/{user}/sections/default-apps

Format: users/{user}/sections/{section}

Declaration
public string Name { get; set; }
Property Value
Type Description
string

SectionName

SectionName-typed view over the Name resource name property.

Declaration
public SectionName SectionName { get; set; }
Property Value
Type Description
SectionName

SortOrder

Output only. The order of the section in relation to other sections. Sections with a lower sort_order value appear before sections with a higher value.

Declaration
public int SortOrder { get; set; }
Property Value
Type Description
int

Type

Required. The type of the section.

Declaration
public Section.Types.SectionType Type { get; set; }
Property Value
Type Description
Section.Types.SectionType
In this article
Back to top Generated by DocFX