Understand the PersistentResourceServiceTransport inheritance structure
mainThe PersistentResourceServiceTransport serves as the Abstract Base Class (ABC) for all transport implementations within the PersistentResourceService. Depending on your application's requirements for concurrency and protocol, you should choose one of the following public transport classes:
- Sync gRPC: Use
PersistentResourceServiceGrpcTransportfor synchronous gRPC communication. - Async gRPC: Use
PersistentResourceServiceGrpcAsyncIOTransportfor asynchronous gRPC communication usingasyncio. - Sync REST: Use
PersistentResourceServiceRestTransportfor synchronous REST communication.
Internal implementation details, such as the private _BasePersistentResourceServiceRestTransport and its associated _BaseMETHOD classes, are used to build the public REST transport but should not be used directly by end-users.