Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is there a way to find out the type of a field (repeated/optional/required) programatically
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
JP  
View profile  
 More options Sep 16 2012, 3:51 am
From: JP <largefl...@gmail.com>
Date: Sun, 16 Sep 2012 00:51:11 -0700 (PDT)
Local: Sun, Sep 16 2012 3:51 am
Subject: Is there a way to find out the type of a field (repeated/optional/required) programatically

Hi All,
     I searched the documentation and could not find any thing. I want to
find out from a program how a field is defined
(required/optional/repeated). Is it possible.
I understand I can look at the .proto file. But I would like to know if I
can do that from the program

Thanks
JP


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jason Hsueh  
View profile  
 More options Sep 17 2012, 11:36 pm
From: Jason Hsueh <jas...@google.com>
Date: Mon, 17 Sep 2012 20:35:57 -0700
Local: Mon, Sep 17 2012 11:35 pm
Subject: Re: [protobuf] Is there a way to find out the type of a field (repeated/optional/required) programatically

The various *Descriptor classes provide type-definition information. Check
out the API reference for your specific language (for C++ it's in
descriptor.h, Java is Descriptors.java, etc)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »