Class MembershipBatchUpdatedEventData.Builder (0.19.0)

public static final class MembershipBatchUpdatedEventData.Builder extends GeneratedMessageV3.Builder<MembershipBatchUpdatedEventData.Builder> implements MembershipBatchUpdatedEventDataOrBuilder

Event payload for multiple updated memberships.

Event type: google.workspace.chat.membership.v1.batchUpdated

Protobuf type google.chat.v1.MembershipBatchUpdatedEventData

Static Methods

getDescriptor()

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

Methods

addAllMemberships(Iterable<? extends MembershipUpdatedEventData> values)

public MembershipBatchUpdatedEventData.Builder addAllMemberships(Iterable<? extends MembershipUpdatedEventData> values)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

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

addMemberships(MembershipUpdatedEventData value)

public MembershipBatchUpdatedEventData.Builder addMemberships(MembershipUpdatedEventData value)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
value MembershipUpdatedEventData
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

addMemberships(MembershipUpdatedEventData.Builder builderForValue)

public MembershipBatchUpdatedEventData.Builder addMemberships(MembershipUpdatedEventData.Builder builderForValue)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
builderForValue MembershipUpdatedEventData.Builder
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

addMemberships(int index, MembershipUpdatedEventData value)

public MembershipBatchUpdatedEventData.Builder addMemberships(int index, MembershipUpdatedEventData value)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameters
Name Description
index int
value MembershipUpdatedEventData
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

addMemberships(int index, MembershipUpdatedEventData.Builder builderForValue)

public MembershipBatchUpdatedEventData.Builder addMemberships(int index, MembershipUpdatedEventData.Builder builderForValue)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameters
Name Description
index int
builderForValue MembershipUpdatedEventData.Builder
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

addMembershipsBuilder()

public MembershipUpdatedEventData.Builder addMembershipsBuilder()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Returns
Type Description
MembershipUpdatedEventData.Builder

addMembershipsBuilder(int index)

public MembershipUpdatedEventData.Builder addMembershipsBuilder(int index)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipUpdatedEventData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipBatchUpdatedEventData build()
Returns
Type Description
MembershipBatchUpdatedEventData

buildPartial()

public MembershipBatchUpdatedEventData buildPartial()
Returns
Type Description
MembershipBatchUpdatedEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMemberships()

public MembershipBatchUpdatedEventData.Builder clearMemberships()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Returns
Type Description
MembershipBatchUpdatedEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MembershipBatchUpdatedEventData getDefaultInstanceForType()
Returns
Type Description
MembershipBatchUpdatedEventData

getDescriptorForType()

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

getMemberships(int index)

public MembershipUpdatedEventData getMemberships(int index)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipUpdatedEventData

getMembershipsBuilder(int index)

public MembershipUpdatedEventData.Builder getMembershipsBuilder(int index)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipUpdatedEventData.Builder

getMembershipsBuilderList()

public List<MembershipUpdatedEventData.Builder> getMembershipsBuilderList()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Returns
Type Description
List<Builder>

getMembershipsCount()

public int getMembershipsCount()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Returns
Type Description
int

getMembershipsList()

public List<MembershipUpdatedEventData> getMembershipsList()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Returns
Type Description
List<MembershipUpdatedEventData>

getMembershipsOrBuilder(int index)

public MembershipUpdatedEventDataOrBuilder getMembershipsOrBuilder(int index)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipUpdatedEventDataOrBuilder

getMembershipsOrBuilderList()

public List<? extends MembershipUpdatedEventDataOrBuilder> getMembershipsOrBuilderList()

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MembershipBatchUpdatedEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMemberships(int index)

public MembershipBatchUpdatedEventData.Builder removeMemberships(int index)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameter
Name Description
index int
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemberships(int index, MembershipUpdatedEventData value)

public MembershipBatchUpdatedEventData.Builder setMemberships(int index, MembershipUpdatedEventData value)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameters
Name Description
index int
value MembershipUpdatedEventData
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

setMemberships(int index, MembershipUpdatedEventData.Builder builderForValue)

public MembershipBatchUpdatedEventData.Builder setMemberships(int index, MembershipUpdatedEventData.Builder builderForValue)

A list of updated memberships.

repeated .google.chat.v1.MembershipUpdatedEventData memberships = 1;

Parameters
Name Description
index int
builderForValue MembershipUpdatedEventData.Builder
Returns
Type Description
MembershipBatchUpdatedEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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