In gRPC, a service is defined using a .proto file where you specify the RPC methods, their request and response types using Protocol Buffers. This service definition includes specifying the service name and the RPC operations that can be performed, along with their input and output data structures.