Skip to content

Instantly share code, notes, and snippets.

@kameshsampath
Created February 9, 2017 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kameshsampath/b5b9014967bede93b47ba8047c3bf295 to your computer and use it in GitHub Desktop.
Save kameshsampath/b5b9014967bede93b47ba8047c3bf295 to your computer and use it in GitHub Desktop.
package queries;
/* @Indexed */
message User {
/* @IndexedField(index=false, store=false) */
required string userId = 1;
/* @IndexedField */
/* @SortableField */
required string firstName = 2;
/* @IndexedField */
/* @SortableField */
required string lastName = 3;
/* @IndexedField */
required string email = 4;
/* @Indexed */
message Address {
/* @IndexedField */
required string streetName = 1;
/* @IndexedField */
required string line1 = 2;
optional string line2 = 3;
/* @IndexedField */
required string city = 4;
/* @IndexedField */
required string state = 5;
/* @IndexedField */
required string zipCode = 6;
optional string country = 7;
}
/* @IndexedField(index=true, store=false) */
repeated Address address = 7;
optional string machineIp = 8;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment