Sha256: 4ef58ed0adec9f37bf6dd355f0b4a787581399a703f04a4987d4f67bcda1f4c4

Contents?: true

Size: 725 Bytes

Versions: 37

Compression:

Stored size: 725 Bytes

Contents

syntax = "proto2";

package test;
import 'protos/resource.proto';

// Test extending another message from an imported file.

enum EnumTestType {
  ZERO = 0;
  ONE = 1;
  TWO = 2;
}

// Uses aliases
enum AliasedEnum {
  option allow_alias = true;

  THREE  = 3;
  TRES   = 3;

  FOUR   = 4;
  CUATRO = 4;
}

message EnumTestMessage {
  optional EnumTestType non_default_enum = 1;
  optional EnumTestType default_enum = 2 [default=ONE];
  repeated EnumTestType repeated_enums = 3;

  optional AliasedEnum alias_non_default_enum = 4;
  optional AliasedEnum alias_default_enum = 5 [default=CUATRO];
  repeated AliasedEnum alias_repeated_enums = 6;
}

extend test.Resource {
  optional int32 ext_other_file_defined_field = 200;
}

Version data entries

37 entries across 37 versions & 3 rubygems

Version Path
protobuf-3.10.9 spec/support/protos/enum.proto
protobuf-3.10.8 spec/support/protos/enum.proto
protobuf-3.10.7 spec/support/protos/enum.proto
protobuf-3.10.6 spec/support/protos/enum.proto
protobuf-3.10.5 spec/support/protos/enum.proto
protobuf-3.10.4 spec/support/protos/enum.proto
protobuf-cucumber-3.10.8 spec/support/protos/enum.proto
protobuf-cucumber-3.10.7 spec/support/protos/enum.proto
protobuf-cucumber-3.10.6 spec/support/protos/enum.proto
protobuf-cucumber-3.10.5 spec/support/protos/enum.proto
protobuf-cucumber-3.10.4 spec/support/protos/enum.proto
protobuf-3.10.3 spec/support/protos/enum.proto
protobuf-3.10.2 spec/support/protos/enum.proto
protobuf-3.10.1 spec/support/protos/enum.proto
protobuf-3.10.0 spec/support/protos/enum.proto
protobuf-3.10.0.pre0 spec/support/protos/enum.proto
protobuf-3.9.0 spec/support/protos/enum.proto
protobuf-3.9.0.pre2 spec/support/protos/enum.proto
protobuf-3.9.0.pre spec/support/protos/enum.proto
protobuf-3.8.5 spec/support/protos/enum.proto