Create your own profanity filter Extend Override app
Last updated on May 21, 2025
Overview
This article explains the API contract (Protobuf) used in the Extend Override app for profanity filter.
service ProfanityFilterService {
rpc Validate(ExtendProfanityValidationRequest) returns (ExtendProfanityValidationResponse);
}
API Contract
Validate
Validate
is called when a user's generated content needs to be validated.
- C#
- Go
- Java
- Python
In the app, the following function can be found in src/AccelByte.PluginArch.ProfanityFilter.Demo.Server/Services/ProfanityFilterServiceImpl.cs
.
public override Task<ExtendProfanityValidationResponse> Validate(ExtendProfanityValidationRequest request, ServerCallContext context)
{
...
}
In the app, the following function can be found in pkg/server/grpcserver.go
.
func (server *ProfanityFilterServer) Validate(ctx context.Context, request *registered_v1.ExtendProfanityValidationRequest) (*registered_v1.ExtendProfanityValidationResponse, error) {
...
}
In the app, the following function can be found in src/main/java/net/accelbyte/profanity/filter/service/ProfanityFilterService.java
.
@Override
public void validate(ExtendProfanityValidationRequest request, StreamObserver<ExtendProfanityValidationResponse> responseObserver) {
...
}
In the app, the following function can be found in src/app/services/profanity_service.py
.
async def Validate(self, request, context):
...
info
You could find more information about gRPC request handling here.