Sha256: 0eb6423128a838117c5de1b5cae142913124e395fcae78810e9bb2df7432f842

Contents?: true

Size: 504 Bytes

Versions: 49

Compression:

Stored size: 504 Bytes

Contents

syntax = "proto2";

package test;

message Header {
  extensions 100 to max;

  enum Type   {
    PayloadTypeA = 1;
    PayloadTypeB = 2;
  }

  required Type type = 1;
}

message PayloadA {
  message Foo {
    optional string foo_a = 1;
  }

  extend Header {
    optional PayloadA payload = 100;
  }
}

message PayloadB {
  message Foo {
    optional string foo_b = 1;
  }

  // UNCOMMENT TO TEST RUNTIME FAILING WITH MULTIPLE FIELDS
  // extend Header {
  //  optional PayloadB payload = 101;
  //}
}

Version data entries

49 entries across 49 versions & 3 rubygems

Version Path
protobuf-3.8.5.pre0 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.4 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.3 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.2 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.1 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.0 spec/support/protos/multi_field_extensions.proto
protobuf-3.8.0.pre1 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.5 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.4 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.3 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.2 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.2.pre1 spec/support/protos/multi_field_extensions.proto
protobuffy-4.0.1 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.1 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.0 spec/support/protos/multi_field_extensions.proto
protobuf-3.7.0.pre3 spec/support/protos/multi_field_extensions.proto
protobuffy-4.0.0 spec/support/protos/multi_field_extensions.proto
protobuf-3.6.12 spec/support/protos/multi_field_extensions.proto
protobuf-3.6.11 spec/support/protos/multi_field_extensions.proto
protobuf-3.6.10 spec/support/protos/multi_field_extensions.proto