Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

83
Vistas
how to define repeated field as required in google protocol buffer?

how to define repeated field as required in Google protocol buffer?I have a field that modifier is repeated(repeated int32 A ).How i add required modifier to this field? in fact i want to have both modifier(required and repeated).

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Sorry, there is no way to mark a repeated field as "required".

In fact, required itself is widely considered a misfeature and is being phased out in Protobuf 3.0. For an extended explanation/rant of why this is the case, see:

https://capnproto.org/faq.html#how-do-i-make-a-field-required-like-in-protocol-buffers

(That's a link to the Cap'n Proto web site, which is a competitor to Protobufs, but its author (namely, me) was also the main author of Protobuf v2.)

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda