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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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];
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];
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];
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];
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];
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListMembershipsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListMembershipsResponse build()
buildPartial()
public ListMembershipsResponse buildPartial()
clear()
public ListMembershipsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListMembershipsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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];
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListMembershipsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public ListMembershipsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListMembershipsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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];
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];
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListMembershipsResponse other)
public ListMembershipsResponse.Builder mergeFrom(ListMembershipsResponse other)
public ListMembershipsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListMembershipsResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListMembershipsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListMembershipsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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];
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];
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListMembershipsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListMembershipsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides