Skip to content

Conversation

dhermes
Copy link
Contributor

@dhermes dhermes commented Feb 13, 2016

NOTE: Has #1461 as diffbase.

Relates to discussion in #1402.

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Feb 13, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 13, 2016
@theacodes
Copy link
Contributor

LGTM

@dhermes dhermes force-pushed the v1beta3-use-whichoneof branch from 04e131d to 1c2e73b Compare February 13, 2016 07:10
dhermes added a commit that referenced this pull request Feb 13, 2016
Using WhichOneof when parsing a Value protobuf.
@dhermes dhermes merged commit 302c1a0 into googleapis:datastore-v1beta3 Feb 13, 2016
@dhermes dhermes deleted the v1beta3-use-whichoneof branch February 13, 2016 07:15
if value_pb.HasField('timestamp_value'):
value_type = value_pb.WhichOneof('value_type')

if value_type == 'timestamp_value':

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the Datastore API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants