grpc.global_admin.GlobalAdminOuterClassGrpcKt.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
package grpc.global_admin
import grpc.global_admin.GlobalAdminGrpc.getServiceDescriptor
import io.grpc.CallOptions
import io.grpc.CallOptions.DEFAULT
import io.grpc.Channel
import io.grpc.Metadata
import io.grpc.MethodDescriptor
import io.grpc.ServerServiceDefinition
import io.grpc.ServerServiceDefinition.builder
import io.grpc.ServiceDescriptor
import io.grpc.Status.UNIMPLEMENTED
import io.grpc.StatusException
import io.grpc.kotlin.AbstractCoroutineServerImpl
import io.grpc.kotlin.AbstractCoroutineStub
import io.grpc.kotlin.ClientCalls.unaryRpc
import io.grpc.kotlin.ServerCalls.unaryServerMethodDefinition
import io.grpc.kotlin.StubFor
import kotlin.String
import kotlin.coroutines.CoroutineContext
import kotlin.coroutines.EmptyCoroutineContext
import kotlin.jvm.JvmOverloads
import kotlin.jvm.JvmStatic
/**
* Holder for Kotlin coroutine-based client and server APIs for global_admin.GlobalAdmin.
*/
public object GlobalAdminGrpcKt {
public const val SERVICE_NAME: String = GlobalAdminGrpc.SERVICE_NAME
@JvmStatic
public val serviceDescriptor: ServiceDescriptor
get() = getServiceDescriptor()
public val getAccountsMethod: MethodDescriptor<_GetAccountsRequest, _GetAccountsResponse>
@JvmStatic
get() = GlobalAdminGrpc.getGetAccountsMethod()
public val getInvitationsForUserMethod:
MethodDescriptor<_GetInvitationsForUserRequest, _GetInvitationsForUserResponse>
@JvmStatic
get() = GlobalAdminGrpc.getGetInvitationsForUserMethod()
public val getAccountSessionTokenMethod:
MethodDescriptor<_GetAccountSessionTokenRequest, _GetAccountSessionTokenResponse>
@JvmStatic
get() = GlobalAdminGrpc.getGetAccountSessionTokenMethod()
public val addMemberMethod: MethodDescriptor<_AddMemberRequest, _AddMemberResponse>
@JvmStatic
get() = GlobalAdminGrpc.getAddMemberMethod()
public val removeMemberMethod: MethodDescriptor<_RemoveMemberRequest, _RemoveMemberResponse>
@JvmStatic
get() = GlobalAdminGrpc.getRemoveMemberMethod()
public val listMembersMethod: MethodDescriptor<_ListMembersRequest, _ListMembersResponse>
@JvmStatic
get() = GlobalAdminGrpc.getListMembersMethod()
public val getEndpointsForAccountMethod:
MethodDescriptor<_GetEndpointsForAccountRequest, _GetEndpointsForAccountResponse>
@JvmStatic
get() = GlobalAdminGrpc.getGetEndpointsForAccountMethod()
public val setAccountNameMethod: MethodDescriptor<_SetAccountNameRequest, _SetAccountNameResponse>
@JvmStatic
get() = GlobalAdminGrpc.getSetAccountNameMethod()
public val inviteMemberMethod: MethodDescriptor<_InviteMemberRequest, _InviteMemberResponse>
@JvmStatic
get() = GlobalAdminGrpc.getInviteMemberMethod()
public val acceptInvitationMethod:
MethodDescriptor<_AcceptInvitationRequest, _AcceptInvitationResponse>
@JvmStatic
get() = GlobalAdminGrpc.getAcceptInvitationMethod()
public val rejectInvitationMethod:
MethodDescriptor<_RejectInvitationRequest, _RejectInvitationResponse>
@JvmStatic
get() = GlobalAdminGrpc.getRejectInvitationMethod()
public val listInvitationsForAccountMethod:
MethodDescriptor<_ListInvitationsForAccountRequest, _ListInvitationsForAccountResponse>
@JvmStatic
get() = GlobalAdminGrpc.getListInvitationsForAccountMethod()
public val revokeInvitationMethod:
MethodDescriptor<_RevokeInvitationRequest, _RevokeInvitationResponse>
@JvmStatic
get() = GlobalAdminGrpc.getRevokeInvitationMethod()
/**
* A stub for issuing RPCs to a(n) global_admin.GlobalAdmin service as suspending coroutines.
*/
@StubFor(GlobalAdminGrpc::class)
public class GlobalAdminCoroutineStub @JvmOverloads constructor(
channel: Channel,
callOptions: CallOptions = DEFAULT,
) : AbstractCoroutineStub(channel, callOptions) {
override fun build(channel: Channel, callOptions: CallOptions): GlobalAdminCoroutineStub =
GlobalAdminCoroutineStub(channel, callOptions)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun getAccounts(request: _GetAccountsRequest, headers: Metadata = Metadata()):
_GetAccountsResponse = unaryRpc(
channel,
GlobalAdminGrpc.getGetAccountsMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun getInvitationsForUser(request: _GetInvitationsForUserRequest,
headers: Metadata = Metadata()): _GetInvitationsForUserResponse = unaryRpc(
channel,
GlobalAdminGrpc.getGetInvitationsForUserMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun getAccountSessionToken(request: _GetAccountSessionTokenRequest,
headers: Metadata = Metadata()): _GetAccountSessionTokenResponse = unaryRpc(
channel,
GlobalAdminGrpc.getGetAccountSessionTokenMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun addMember(request: _AddMemberRequest, headers: Metadata = Metadata()):
_AddMemberResponse = unaryRpc(
channel,
GlobalAdminGrpc.getAddMemberMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun removeMember(request: _RemoveMemberRequest, headers: Metadata = Metadata()):
_RemoveMemberResponse = unaryRpc(
channel,
GlobalAdminGrpc.getRemoveMemberMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun listMembers(request: _ListMembersRequest, headers: Metadata = Metadata()):
_ListMembersResponse = unaryRpc(
channel,
GlobalAdminGrpc.getListMembersMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun getEndpointsForAccount(request: _GetEndpointsForAccountRequest,
headers: Metadata = Metadata()): _GetEndpointsForAccountResponse = unaryRpc(
channel,
GlobalAdminGrpc.getGetEndpointsForAccountMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun setAccountName(request: _SetAccountNameRequest, headers: Metadata =
Metadata()): _SetAccountNameResponse = unaryRpc(
channel,
GlobalAdminGrpc.getSetAccountNameMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun inviteMember(request: _InviteMemberRequest, headers: Metadata = Metadata()):
_InviteMemberResponse = unaryRpc(
channel,
GlobalAdminGrpc.getInviteMemberMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun acceptInvitation(request: _AcceptInvitationRequest, headers: Metadata =
Metadata()): _AcceptInvitationResponse = unaryRpc(
channel,
GlobalAdminGrpc.getAcceptInvitationMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun rejectInvitation(request: _RejectInvitationRequest, headers: Metadata =
Metadata()): _RejectInvitationResponse = unaryRpc(
channel,
GlobalAdminGrpc.getRejectInvitationMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun listInvitationsForAccount(request: _ListInvitationsForAccountRequest,
headers: Metadata = Metadata()): _ListInvitationsForAccountResponse = unaryRpc(
channel,
GlobalAdminGrpc.getListInvitationsForAccountMethod(),
request,
callOptions,
headers
)
/**
* Executes this RPC and returns the response message, suspending until the RPC completes
* with [`Status.OK`][io.grpc.Status]. If the RPC completes with another status, a
* corresponding
* [StatusException] is thrown. If this coroutine is cancelled, the RPC is also cancelled
* with the corresponding exception as a cause.
*
* @param request The request message to send to the server.
*
* @param headers Metadata to attach to the request. Most users will not need this.
*
* @return The single response from the server.
*/
public suspend fun revokeInvitation(request: _RevokeInvitationRequest, headers: Metadata =
Metadata()): _RevokeInvitationResponse = unaryRpc(
channel,
GlobalAdminGrpc.getRevokeInvitationMethod(),
request,
callOptions,
headers
)
}
/**
* Skeletal implementation of the global_admin.GlobalAdmin service based on Kotlin coroutines.
*/
public abstract class GlobalAdminCoroutineImplBase(
coroutineContext: CoroutineContext = EmptyCoroutineContext,
) : AbstractCoroutineServerImpl(coroutineContext) {
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.GetAccounts.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun getAccounts(request: _GetAccountsRequest): _GetAccountsResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.GetAccounts is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.GetInvitationsForUser.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun getInvitationsForUser(request: _GetInvitationsForUserRequest):
_GetInvitationsForUserResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.GetInvitationsForUser is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.GetAccountSessionToken.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun getAccountSessionToken(request: _GetAccountSessionTokenRequest):
_GetAccountSessionTokenResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.GetAccountSessionToken is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.AddMember.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun addMember(request: _AddMemberRequest): _AddMemberResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.AddMember is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.RemoveMember.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun removeMember(request: _RemoveMemberRequest): _RemoveMemberResponse =
throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.RemoveMember is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.ListMembers.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun listMembers(request: _ListMembersRequest): _ListMembersResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.ListMembers is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.GetEndpointsForAccount.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun getEndpointsForAccount(request: _GetEndpointsForAccountRequest):
_GetEndpointsForAccountResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.GetEndpointsForAccount is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.SetAccountName.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun setAccountName(request: _SetAccountNameRequest): _SetAccountNameResponse
= throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.SetAccountName is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.InviteMember.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun inviteMember(request: _InviteMemberRequest): _InviteMemberResponse =
throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.InviteMember is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.AcceptInvitation.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun acceptInvitation(request: _AcceptInvitationRequest):
_AcceptInvitationResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.AcceptInvitation is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.RejectInvitation.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun rejectInvitation(request: _RejectInvitationRequest):
_RejectInvitationResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.RejectInvitation is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.ListInvitationsForAccount.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun listInvitationsForAccount(request: _ListInvitationsForAccountRequest):
_ListInvitationsForAccountResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.ListInvitationsForAccount is unimplemented"))
/**
* Returns the response to an RPC for global_admin.GlobalAdmin.RevokeInvitation.
*
* If this method fails with a [StatusException], the RPC will fail with the corresponding
* [io.grpc.Status]. If this method fails with a [java.util.concurrent.CancellationException],
* the RPC will fail
* with status `Status.CANCELLED`. If this method fails for any other reason, the RPC will
* fail with `Status.UNKNOWN` with the exception as a cause.
*
* @param request The request from the client.
*/
public open suspend fun revokeInvitation(request: _RevokeInvitationRequest):
_RevokeInvitationResponse = throw
StatusException(UNIMPLEMENTED.withDescription("Method global_admin.GlobalAdmin.RevokeInvitation is unimplemented"))
final override fun bindService(): ServerServiceDefinition = builder(getServiceDescriptor())
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getGetAccountsMethod(),
implementation = ::getAccounts
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getGetInvitationsForUserMethod(),
implementation = ::getInvitationsForUser
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getGetAccountSessionTokenMethod(),
implementation = ::getAccountSessionToken
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getAddMemberMethod(),
implementation = ::addMember
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getRemoveMemberMethod(),
implementation = ::removeMember
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getListMembersMethod(),
implementation = ::listMembers
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getGetEndpointsForAccountMethod(),
implementation = ::getEndpointsForAccount
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getSetAccountNameMethod(),
implementation = ::setAccountName
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getInviteMemberMethod(),
implementation = ::inviteMember
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getAcceptInvitationMethod(),
implementation = ::acceptInvitation
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getRejectInvitationMethod(),
implementation = ::rejectInvitation
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getListInvitationsForAccountMethod(),
implementation = ::listInvitationsForAccount
))
.addMethod(unaryServerMethodDefinition(
context = this.context,
descriptor = GlobalAdminGrpc.getRevokeInvitationMethod(),
implementation = ::revokeInvitation
)).build()
}
}