1
votes

I have a python class that inherits from Cloud Endpoints Enum and is included in a Message for transmission to an Android client.

class Status(messages.Enum):

    SUCCESS = 1
    NOT_IN_MATCH = 2
    ALREADY_MATCHED = 3
    FAILURE = 4

Is there anyway to get these constant strings ("SUCCESS", "NOT_IN_MATCH", "ALREADY_MATCHED", "FAILURE") in the Android client? I don't see them anywhere in the generated Java source code when I use get_client_lib.

Note: I have seen this post that gives a solution in Java. That is not applicable when using python Cloud Endpoints.

1
Unfortunately, there currently isn't. - saiyr
@saiyr thanks for the update... Any idea if there are plans to support this? - Alex

1 Answers

2
votes

According to a Google Cloud Endoints dev this is not possible currently.