public static final class SectionItem.Builder extends GeneratedMessage.Builder<SectionItem.Builder> implements SectionItemOrBuilderA user's defined section item. This is used to represent section items, such as spaces, grouped under a section.
Protobuf type google.chat.v1.SectionItem
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SectionItem.BuilderImplements
SectionItemOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SectionItem build()| Returns | |
|---|---|
| Type | Description |
SectionItem |
|
buildPartial()
public SectionItem buildPartial()| Returns | |
|---|---|
| Type | Description |
SectionItem |
|
clear()
public SectionItem.Builder clear()| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
|
clearItem()
public SectionItem.Builder clearItem()| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
|
clearName()
public SectionItem.Builder clearName()Identifier. The resource name of the section item.
Format: users/{user}/sections/{section}/items/{item}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |
clearSpace()
public SectionItem.Builder clearSpace()Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public SectionItem getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SectionItem |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getItemCase()
public SectionItem.ItemCase getItemCase()| Returns | |
|---|---|
| Type | Description |
SectionItem.ItemCase |
|
getName()
public String getName()Identifier. The resource name of the section item.
Format: users/{user}/sections/{section}/items/{item}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The resource name of the section item.
Format: users/{user}/sections/{section}/items/{item}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getSpace()
public String getSpace()Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The space. |
getSpaceBytes()
public ByteString getSpaceBytes()Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for space. |
hasSpace()
public boolean hasSpace()Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the space field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SectionItem other)
public SectionItem.Builder mergeFrom(SectionItem other)| Parameter | |
|---|---|
| Name | Description |
other |
SectionItem |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SectionItem.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SectionItem.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
|
setName(String value)
public SectionItem.Builder setName(String value)Identifier. The resource name of the section item.
Format: users/{user}/sections/{section}/items/{item}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public SectionItem.Builder setNameBytes(ByteString value)Identifier. The resource name of the section item.
Format: users/{user}/sections/{section}/items/{item}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |
setSpace(String value)
public SectionItem.Builder setSpace(String value)Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe space to set. |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |
setSpaceBytes(ByteString value)
public SectionItem.Builder setSpaceBytes(ByteString value)Optional. The space resource name.
Format: spaces/{space}
string space = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for space to set. |
| Returns | |
|---|---|
| Type | Description |
SectionItem.Builder |
This builder for chaining. |