Class MembershipBatchCreatedEventData.Builder (0.12.0)

public static final class MembershipBatchCreatedEventData.Builder extends GeneratedMessageV3.Builder<MembershipBatchCreatedEventData.Builder> implements MembershipBatchCreatedEventDataOrBuilder

Event payload for multiple new memberships.

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

Protobuf type google.chat.v1.MembershipBatchCreatedEventData

Static Methods

getDescriptor()

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

Methods

addAllMemberships(Iterable<? extends MembershipCreatedEventData> values)

public MembershipBatchCreatedEventData.Builder addAllMemberships(Iterable<? extends MembershipCreatedEventData> values)

A list of new memberships.

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

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

addMemberships(MembershipCreatedEventData value)

public MembershipBatchCreatedEventData.Builder addMemberships(MembershipCreatedEventData value)

A list of new memberships.

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

Parameter
Name Description
value MembershipCreatedEventData
Returns
Type Description
MembershipBatchCreatedEventData.Builder

addMemberships(MembershipCreatedEventData.Builder builderForValue)

public MembershipBatchCreatedEventData.Builder addMemberships(MembershipCreatedEventData.Builder builderForValue)

A list of new memberships.

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

Parameter
Name Description
builderForValue MembershipCreatedEventData.Builder
Returns
Type Description
MembershipBatchCreatedEventData.Builder

addMemberships(int index, MembershipCreatedEventData value)

public MembershipBatchCreatedEventData.Builder addMemberships(int index, MembershipCreatedEventData value)

A list of new memberships.

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

Parameters
Name Description
index int
value MembershipCreatedEventData
Returns
Type Description
MembershipBatchCreatedEventData.Builder

addMemberships(int index, MembershipCreatedEventData.Builder builderForValue)

public MembershipBatchCreatedEventData.Builder addMemberships(int index, MembershipCreatedEventData.Builder builderForValue)

A list of new memberships.

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

Parameters
Name Description
index int
builderForValue MembershipCreatedEventData.Builder
Returns
Type Description
MembershipBatchCreatedEventData.Builder

addMembershipsBuilder()

public MembershipCreatedEventData.Builder addMembershipsBuilder()

A list of new memberships.

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

Returns
Type Description
MembershipCreatedEventData.Builder

addMembershipsBuilder(int index)

public MembershipCreatedEventData.Builder addMembershipsBuilder(int index)

A list of new memberships.

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

Parameter
Name Description
index int
Returns
Type Description
MembershipCreatedEventData.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MembershipBatchCreatedEventData build()
Returns
Type Description
MembershipBatchCreatedEventData

buildPartial()

public MembershipBatchCreatedEventData buildPartial()
Returns
Type Description
MembershipBatchCreatedEventData

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMemberships()

public MembershipBatchCreatedEventData.Builder clearMemberships()

A list of new memberships.

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

Returns
Type Description
MembershipBatchCreatedEventData.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public MembershipBatchCreatedEventData getDefaultInstanceForType()
Returns
Type Description
MembershipBatchCreatedEventData

getDescriptorForType()

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

getMemberships(int index)

public MembershipCreatedEventData getMemberships(int index)

A list of new memberships.

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

Parameter
Name Description
index int
Returns
Type Description
MembershipCreatedEventData

getMembershipsBuilder(int index)

public MembershipCreatedEventData.Builder getMembershipsBuilder(int index)

A list of new memberships.

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

Parameter
Name Description
index int
Returns
Type Description
MembershipCreatedEventData.Builder

getMembershipsBuilderList()

public List<MembershipCreatedEventData.Builder> getMembershipsBuilderList()

A list of new memberships.

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

Returns
Type Description
List<Builder>

getMembershipsCount()

public int getMembershipsCount()

A list of new memberships.

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

Returns
Type Description
int

getMembershipsList()

public List<MembershipCreatedEventData> getMembershipsList()

A list of new memberships.

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

Returns
Type Description
List<MembershipCreatedEventData>

getMembershipsOrBuilder(int index)

public MembershipCreatedEventDataOrBuilder getMembershipsOrBuilder(int index)

A list of new memberships.

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

Parameter
Name Description
index int
Returns
Type Description
MembershipCreatedEventDataOrBuilder

getMembershipsOrBuilderList()

public List<? extends MembershipCreatedEventDataOrBuilder> getMembershipsOrBuilderList()

A list of new memberships.

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

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MembershipBatchCreatedEventData other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeMemberships(int index)

public MembershipBatchCreatedEventData.Builder removeMemberships(int index)

A list of new memberships.

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

Parameter
Name Description
index int
Returns
Type Description
MembershipBatchCreatedEventData.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMemberships(int index, MembershipCreatedEventData value)

public MembershipBatchCreatedEventData.Builder setMemberships(int index, MembershipCreatedEventData value)

A list of new memberships.

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

Parameters
Name Description
index int
value MembershipCreatedEventData
Returns
Type Description
MembershipBatchCreatedEventData.Builder

setMemberships(int index, MembershipCreatedEventData.Builder builderForValue)

public MembershipBatchCreatedEventData.Builder setMemberships(int index, MembershipCreatedEventData.Builder builderForValue)

A list of new memberships.

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

Parameters
Name Description
index int
builderForValue MembershipCreatedEventData.Builder
Returns
Type Description
MembershipBatchCreatedEventData.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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