Class ListMembershipsResponse.Builder (0.13.0)

public static final class ListMembershipsResponse.Builder extends GeneratedMessageV3.Builder<ListMembershipsResponse.Builder> implements ListMembershipsResponseOrBuilder

Response to list memberships of the space.

Protobuf type google.chat.v1.ListMembershipsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllMemberships(Iterable<? extends Membership> values)

public ListMembershipsResponse.Builder addAllMemberships(Iterable<? extends Membership> values)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
values Iterable<? extends com.google.chat.v1.Membership>
Returns
Type Description
ListMembershipsResponse.Builder

addMemberships(Membership value)

public ListMembershipsResponse.Builder addMemberships(Membership value)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
value Membership
Returns
Type Description
ListMembershipsResponse.Builder

addMemberships(Membership.Builder builderForValue)

public ListMembershipsResponse.Builder addMemberships(Membership.Builder builderForValue)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
builderForValue Membership.Builder
Returns
Type Description
ListMembershipsResponse.Builder

addMemberships(int index, Membership value)

public ListMembershipsResponse.Builder addMemberships(int index, Membership value)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int
value Membership
Returns
Type Description
ListMembershipsResponse.Builder

addMemberships(int index, Membership.Builder builderForValue)

public ListMembershipsResponse.Builder addMemberships(int index, Membership.Builder builderForValue)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int
builderForValue Membership.Builder
Returns
Type Description
ListMembershipsResponse.Builder

addMembershipsBuilder()

public Membership.Builder addMembershipsBuilder()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
Membership.Builder

addMembershipsBuilder(int index)

public Membership.Builder addMembershipsBuilder(int index)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

build()

public ListMembershipsResponse build()
Returns
Type Description
ListMembershipsResponse

buildPartial()

public ListMembershipsResponse buildPartial()
Returns
Type Description
ListMembershipsResponse

clear()

public ListMembershipsResponse.Builder clear()
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListMembershipsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

clearMemberships()

public ListMembershipsResponse.Builder clearMemberships()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
ListMembershipsResponse.Builder

clearNextPageToken()

public ListMembershipsResponse.Builder clearNextPageToken()

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListMembershipsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

clone()

public ListMembershipsResponse.Builder clone()
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMembershipsResponse getDefaultInstanceForType()
Returns
Type Description
ListMembershipsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMemberships(int index)

public Membership getMemberships(int index)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
Membership

getMembershipsBuilder(int index)

public Membership.Builder getMembershipsBuilder(int index)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
Membership.Builder

getMembershipsBuilderList()

public List<Membership.Builder> getMembershipsBuilderList()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<Builder>

getMembershipsCount()

public int getMembershipsCount()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
int

getMembershipsList()

public List<Membership> getMembershipsList()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<Membership>

getMembershipsOrBuilder(int index)

public MembershipOrBuilder getMembershipsOrBuilder(int index)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
MembershipOrBuilder

getMembershipsOrBuilderList()

public List<? extends MembershipOrBuilder> getMembershipsOrBuilderList()

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Returns
Type Description
List<? extends com.google.chat.v1.MembershipOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListMembershipsResponse other)

public ListMembershipsResponse.Builder mergeFrom(ListMembershipsResponse other)
Parameter
Name Description
other ListMembershipsResponse
Returns
Type Description
ListMembershipsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListMembershipsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListMembershipsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ListMembershipsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

removeMemberships(int index)

public ListMembershipsResponse.Builder removeMemberships(int index)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameter
Name Description
index int
Returns
Type Description
ListMembershipsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

setMemberships(int index, Membership value)

public ListMembershipsResponse.Builder setMemberships(int index, Membership value)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int
value Membership
Returns
Type Description
ListMembershipsResponse.Builder

setMemberships(int index, Membership.Builder builderForValue)

public ListMembershipsResponse.Builder setMemberships(int index, Membership.Builder builderForValue)

Unordered list. List of memberships in the requested (or first) page.

repeated .google.chat.v1.Membership memberships = 1 [(.google.api.field_behavior) = UNORDERED_LIST];

Parameters
Name Description
index int
builderForValue Membership.Builder
Returns
Type Description
ListMembershipsResponse.Builder

setNextPageToken(String value)

public ListMembershipsResponse.Builder setNextPageToken(String value)

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListMembershipsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that you can send as pageToken to retrieve the next page of results. If empty, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListMembershipsResponse.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ListMembershipsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListMembershipsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListMembershipsResponse.Builder
Overrides