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.
According to a Google Cloud Endoints dev this is not possible currently.
Unfortunately, there currently isn't [a way to get these constant strings in the Android client].