public static final class ListSectionsResponse.Builder extends GeneratedMessage.Builder<ListSectionsResponse.Builder> implements ListSectionsResponseOrBuilderResponse message for listing sections.
Protobuf type google.chat.v1.ListSectionsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListSectionsResponse.BuilderImplements
ListSectionsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSections(Iterable<? extends Section> values)
public ListSectionsResponse.Builder addAllSections(Iterable<? extends Section> values)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.chat.v1.Section> |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
addSections(Section value)
public ListSectionsResponse.Builder addSections(Section value)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Section |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
addSections(Section.Builder builderForValue)
public ListSectionsResponse.Builder addSections(Section.Builder builderForValue)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Section.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
addSections(int index, Section value)
public ListSectionsResponse.Builder addSections(int index, Section value)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Section |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
addSections(int index, Section.Builder builderForValue)
public ListSectionsResponse.Builder addSections(int index, Section.Builder builderForValue)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Section.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
addSectionsBuilder()
public Section.Builder addSectionsBuilder()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
Section.Builder |
|
addSectionsBuilder(int index)
public Section.Builder addSectionsBuilder(int index)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Section.Builder |
|
build()
public ListSectionsResponse build()| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse |
|
buildPartial()
public ListSectionsResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse |
|
clear()
public ListSectionsResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
clearNextPageToken()
public ListSectionsResponse.Builder clearNextPageToken() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
This builder for chaining. |
clearSections()
public ListSectionsResponse.Builder clearSections()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
getDefaultInstanceForType()
public ListSectionsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getNextPageToken()
public String getNextPageToken() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The nextPageToken. |
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes() A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for nextPageToken. |
getSections(int index)
public Section getSections(int index)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Section |
|
getSectionsBuilder(int index)
public Section.Builder getSectionsBuilder(int index)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Section.Builder |
|
getSectionsBuilderList()
public List<Section.Builder> getSectionsBuilderList()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getSectionsCount()
public int getSectionsCount()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
int |
|
getSectionsList()
public List<Section> getSectionsList()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
List<Section> |
|
getSectionsOrBuilder(int index)
public SectionOrBuilder getSectionsOrBuilder(int index)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
SectionOrBuilder |
|
getSectionsOrBuilderList()
public List<? extends SectionOrBuilder> getSectionsOrBuilderList()The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.chat.v1.SectionOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListSectionsResponse other)
public ListSectionsResponse.Builder mergeFrom(ListSectionsResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListSectionsResponse |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListSectionsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListSectionsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
removeSections(int index)
public ListSectionsResponse.Builder removeSections(int index)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
setNextPageToken(String value)
public ListSectionsResponse.Builder setNextPageToken(String value) A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
This builder for chaining. |
setNextPageTokenBytes(ByteString value)
public ListSectionsResponse.Builder setNextPageTokenBytes(ByteString value) A token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
string next_page_token = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
This builder for chaining. |
setSections(int index, Section value)
public ListSectionsResponse.Builder setSections(int index, Section value)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Section |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|
setSections(int index, Section.Builder builderForValue)
public ListSectionsResponse.Builder setSections(int index, Section.Builder builderForValue)The sections from the specified user.
repeated .google.chat.v1.Section sections = 1;
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Section.Builder |
| Returns | |
|---|---|
| Type | Description |
ListSectionsResponse.Builder |
|