public static final class DeleteMembershipRequest.Builder extends GeneratedMessage.Builder<DeleteMembershipRequest.Builder> implements DeleteMembershipRequestOrBuilderRequest to delete a membership in a space.
Protobuf type google.chat.v1.DeleteMembershipRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeleteMembershipRequest.BuilderImplements
DeleteMembershipRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DeleteMembershipRequest build()| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest |
|
buildPartial()
public DeleteMembershipRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest |
|
clear()
public DeleteMembershipRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
|
clearName()
public DeleteMembershipRequest.Builder clearName()Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.
When deleting a human membership, requires the chat.memberships scope
with user
authentication
or the chat.memberships.app scope with app
authentication
and the spaces/{space}/members/{member} format.
You can use the email as an alias for {member}. For example,
spaces/{space}/members/example@gmail.com where example@gmail.com is the
email of the Google Chat user.
When deleting an app membership, requires the chat.memberships.app scope
and spaces/{space}/members/app format.
Format: spaces/{space}/members/{member} or spaces/{space}/members/app.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
This builder for chaining. |
clearUseAdminAccess()
public DeleteMembershipRequest.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.
Deleting app memberships in a space isn't supported using admin access.
bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public DeleteMembershipRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.
When deleting a human membership, requires the chat.memberships scope
with user
authentication
or the chat.memberships.app scope with app
authentication
and the spaces/{space}/members/{member} format.
You can use the email as an alias for {member}. For example,
spaces/{space}/members/example@gmail.com where example@gmail.com is the
email of the Google Chat user.
When deleting an app membership, requires the chat.memberships.app scope
and spaces/{space}/members/app format.
Format: spaces/{space}/members/{member} or spaces/{space}/members/app.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.
When deleting a human membership, requires the chat.memberships scope
with user
authentication
or the chat.memberships.app scope with app
authentication
and the spaces/{space}/members/{member} format.
You can use the email as an alias for {member}. For example,
spaces/{space}/members/example@gmail.com where example@gmail.com is the
email of the Google Chat user.
When deleting an app membership, requires the chat.memberships.app scope
and spaces/{space}/members/app format.
Format: spaces/{space}/members/{member} or spaces/{space}/members/app.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
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.
Deleting app memberships in a space isn't supported using admin access.
bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The useAdminAccess. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(DeleteMembershipRequest other)
public DeleteMembershipRequest.Builder mergeFrom(DeleteMembershipRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
DeleteMembershipRequest |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeleteMembershipRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeleteMembershipRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
|
setName(String value)
public DeleteMembershipRequest.Builder setName(String value)Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.
When deleting a human membership, requires the chat.memberships scope
with user
authentication
or the chat.memberships.app scope with app
authentication
and the spaces/{space}/members/{member} format.
You can use the email as an alias for {member}. For example,
spaces/{space}/members/example@gmail.com where example@gmail.com is the
email of the Google Chat user.
When deleting an app membership, requires the chat.memberships.app scope
and spaces/{space}/members/app format.
Format: spaces/{space}/members/{member} or spaces/{space}/members/app.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DeleteMembershipRequest.Builder setNameBytes(ByteString value)Required. Resource name of the membership to delete. Chat apps can delete human users' or their own memberships. Chat apps can't delete other apps' memberships.
When deleting a human membership, requires the chat.memberships scope
with user
authentication
or the chat.memberships.app scope with app
authentication
and the spaces/{space}/members/{member} format.
You can use the email as an alias for {member}. For example,
spaces/{space}/members/example@gmail.com where example@gmail.com is the
email of the Google Chat user.
When deleting an app membership, requires the chat.memberships.app scope
and spaces/{space}/members/app format.
Format: spaces/{space}/members/{member} or spaces/{space}/members/app.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
This builder for chaining. |
setUseAdminAccess(boolean value)
public DeleteMembershipRequest.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.
Deleting app memberships in a space isn't supported using admin access.
bool use_admin_access = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe useAdminAccess to set. |
| Returns | |
|---|---|
| Type | Description |
DeleteMembershipRequest.Builder |
This builder for chaining. |