public interface SectionOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDisplayName()
public abstract String getDisplayName() 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.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public abstract ByteString getDisplayNameBytes() 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.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getName()
public abstract String getName()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-appsFormat:
users/{user}/sections/{section}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()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-appsFormat:
users/{user}/sections/{section}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSortOrder()
public abstract int getSortOrder() 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.
int32 sort_order = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The sortOrder. |
getType()
public abstract Section.SectionType getType()Required. The type of the section.
.google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Section.SectionType |
The type. |
getTypeValue()
public abstract int getTypeValue()Required. The type of the section.
.google.chat.v1.Section.SectionType type = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |