Class UpdateMembershipRequest.Builder (0.12.0)

public static final class UpdateMembershipRequest.Builder extends GeneratedMessageV3.Builder<UpdateMembershipRequest.Builder> implements UpdateMembershipRequestOrBuilder

Request message for updating a membership.

Protobuf type google.chat.v1.UpdateMembershipRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UpdateMembershipRequest build()
Returns
Type Description
UpdateMembershipRequest

buildPartial()

public UpdateMembershipRequest buildPartial()
Returns
Type Description
UpdateMembershipRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearMembership()

public UpdateMembershipRequest.Builder clearMembership()

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateMembershipRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateMask()

public UpdateMembershipRequest.Builder clearUpdateMask()

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateMembershipRequest.Builder

clone()

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

getDefaultInstanceForType()

public UpdateMembershipRequest getDefaultInstanceForType()
Returns
Type Description
UpdateMembershipRequest

getDescriptorForType()

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

getMembership()

public Membership getMembership()

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Membership

The membership.

getMembershipBuilder()

public Membership.Builder getMembershipBuilder()

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Membership.Builder

getMembershipOrBuilder()

public MembershipOrBuilder getMembershipOrBuilder()

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MembershipOrBuilder

getUpdateMask()

public FieldMask getUpdateMask()

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
FieldMaskOrBuilder

hasMembership()

public boolean hasMembership()

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the membership field is set.

hasUpdateMask()

public boolean hasUpdateMask()

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateMembershipRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMembership(Membership value)

public UpdateMembershipRequest.Builder mergeMembership(Membership value)

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Membership
Returns
Type Description
UpdateMembershipRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateMask(FieldMask value)

public UpdateMembershipRequest.Builder mergeUpdateMask(FieldMask value)

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateMembershipRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMembership(Membership value)

public UpdateMembershipRequest.Builder setMembership(Membership value)

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Membership
Returns
Type Description
UpdateMembershipRequest.Builder

setMembership(Membership.Builder builderForValue)

public UpdateMembershipRequest.Builder setMembership(Membership.Builder builderForValue)

Required. The membership to update. Only fields specified by update_mask are updated.

.google.chat.v1.Membership membership = 1 [(.google.api.field_behavior) = REQUIRED];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateMask(FieldMask value)

public UpdateMembershipRequest.Builder setUpdateMask(FieldMask value)

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateMembershipRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateMembershipRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

Required. The field paths to update. Separate multiple values with commas or use * to update all field paths.

Currently supported field paths:

  • role

.google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateMembershipRequest.Builder