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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UpdateMembershipRequest.BuilderImplements
UpdateMembershipRequestOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public UpdateMembershipRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
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 |
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 |
clearUseAdminAccess()
public UpdateMembershipRequest.Builder clearUseAdminAccess()
Optional. When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires the chat.admin.memberships
OAuth 2.0
scope.
bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
This builder for chaining. |
clone()
public UpdateMembershipRequest.Builder clone()
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
getDefaultInstanceForType()
public UpdateMembershipRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
getUseAdminAccess()
public boolean getUseAdminAccess()
Optional. When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires the chat.admin.memberships
OAuth 2.0
scope.
bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The useAdminAccess. |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UpdateMembershipRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
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 |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final UpdateMembershipRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
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 |
setUseAdminAccess(boolean value)
public UpdateMembershipRequest.Builder setUseAdminAccess(boolean value)
Optional. When true
, the method runs using the user's Google Workspace
administrator privileges.
The calling user must be a Google Workspace administrator with the manage chat and spaces conversations privilege.
Requires the chat.admin.memberships
OAuth 2.0
scope.
bool use_admin_access = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The useAdminAccess to set. |
Returns | |
---|---|
Type | Description |
UpdateMembershipRequest.Builder |
This builder for chaining. |