...

Text file src/github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/oneofenum/oneof_enum.proto

Documentation: github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/oneofenum

     1syntax = "proto3";
     2
     3package grpc.gateway.examples.internal.proto.oneofenum;
     4
     5option go_package = "github.com/grpc-ecosystem/grpc-gateway/v2/examples/internal/proto/oneofenum";
     6
     7enum ExampleEnum {
     8  EXAMPLE_ENUM_UNSPECIFIED = 0;
     9  EXAMPLE_ENUM_FIRST = 1;
    10}
    11
    12message OneofEnumMessage {
    13  oneof one {
    14    ExampleEnum example_enum = 1;
    15  }
    16}

View as plain text