github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/proto/oneofenum/oneof_enum.proto (about)

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