Quiz
- What is the number 32 representing in the
int32
scalar type?- The number of bits the serialized data will be stored in
- The range of numbers that can fit into the scalar type
- Whether the type can accept negative numbers or not
- What is varint encoding doing?
- Compressing data in such a way that a smaller number of bytes will be required for serializing data
- Turning every negative number into positive numbers
- What is ZigZag encoding doing?
- Compressing data in such a way that a smaller number of bytes will be required for serializing data
- Turning every negative number into a positive number
- In the following code, what is the
= 1
syntax and what is it used for?uint64 ids = 1;
- This is assigning the value 1 to a field
- 1 is an identifier that has no other purpose than helping developers
- 1 is an identifier that is helping the compiler know into which field to deserialize the binary data.
- What is a message?
- An object that contains fields and represents an entity
- A collection of API endpoints
- A list of possible states
- What is an enum?
- An object that contains fields and represents an entity
- A collection of API endpoints
- A list of possible states
- What is a service?
- An object that contains fields and represents an entity
- A collection of API endpoints
- A list of possible states