Class ListMembershipsResponse.Builder (0.5.0)

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

Protobuf type google.chat.v1.ListMembershipsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.chat.v1.Membership>
Returns
TypeDescription
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
NameDescription
valueMembership
Returns
TypeDescription
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
NameDescription
builderForValueMembership.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMembership
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMembership.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Membership.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

build()

public ListMembershipsResponse build()
Returns
TypeDescription
ListMembershipsResponse

buildPartial()

public ListMembershipsResponse buildPartial()
Returns
TypeDescription
ListMembershipsResponse

clear()

public ListMembershipsResponse.Builder clear()
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListMembershipsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListMembershipsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListMembershipsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

clone()

public ListMembershipsResponse.Builder clone()
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListMembershipsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListMembershipsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListMembershipsResponse other)

public ListMembershipsResponse.Builder mergeFrom(ListMembershipsResponse other)
Parameter
NameDescription
otherListMembershipsResponse
Returns
TypeDescription
ListMembershipsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListMembershipsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListMembershipsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListMembershipsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListMembershipsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMembership
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMembership.Builder
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListMembershipsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListMembershipsResponse.Builder
Overrides