MAGx2
MAGx2

Reputation: 3189

How to use protobuf in google endpoints

I'm writing Google Endpoints application and I want to return protobuf object in my @Api class.

All the time I'm getting this error:

Error:Gradle: Execution failed for task ':ExploreBackend:appengineEndpointsGetClientLibs'. There was an error running endpoints command get-client-lib: Object type ? extends xxx.model.proto.MainProtos$PlaceOrBuilder not supported.

This is my code:

@Api( ... )
public class CityApi {

    public List<MainProto.City> getCities() {
        return new ArrayList<MainProto.City>();
    }
}

Upvotes: 0

Views: 433

Answers (1)

MAGx2
MAGx2

Reputation: 3189

How to use protobuf in google endpoints

You can not

Upvotes: 2

Related Questions