Reader small image

You're reading from  Protocol Buffers Handbook

Product typeBook
Published inApr 2024
PublisherPackt
ISBN-139781805124672
Edition1st Edition
Right arrow
Author (1)
Clément Jean
Clément Jean
author image
Clément Jean

Clément Jean is the CTO of Education for Ethiopia, a start-up focusing on educating K-12 students in Ethiopia. On top of that, he is also an online instructor (on Udemy, Linux Foundation, and others) teaching people about diff erent kinds of technologies. In both his occupations, he deals with technologies such as Protobuf and gRPC and how to apply them to real-life use cases. His overall goal is to empower people through education and technology.
Read more about Clément Jean

Right arrow

Quiz

  1. Where can you find the proto files for the well-known types?
    1. Nowhere; this is hidden inside the Protobuf language.
    2. Nowhere; we need to define them ourselves.
    3. On the GitHub repository under the src/google/protobuf folder.
  2. Where can you find the message definitions for the option types?
    1. On the GitHub repository under the folder src/google/protobuf in the file called descriptor.proto.
    2. Nowhere; this is hidden inside the Protobuf language.
    3. Nowhere; we need to define them ourselves.
  3. Why do we define an UNSPECIFIED value in enums for proto3?
    1. In proto3, enums are closed, so we do not need to.
    2. In proto3, enums are open, and UNSPECIFIED is used as the default value.
    3. It is not needed in proto3, only in proto2.
  4. When do we need nesting types inside a message?
    1. When we want to specialize a type with fully qualified names.
    2. When a type is only relevant in the parent context.
    3. All the above.
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Protocol Buffers Handbook
Published in: Apr 2024Publisher: PacktISBN-13: 9781805124672

Author (1)

author image
Clément Jean

Clément Jean is the CTO of Education for Ethiopia, a start-up focusing on educating K-12 students in Ethiopia. On top of that, he is also an online instructor (on Udemy, Linux Foundation, and others) teaching people about diff erent kinds of technologies. In both his occupations, he deals with technologies such as Protobuf and gRPC and how to apply them to real-life use cases. His overall goal is to empower people through education and technology.
Read more about Clément Jean