I have a multi-process application where one of the processes needs to
work on arbitrary message types provided by one of the other processes
via FileDescriptorProto.

Is there a way to check that a given Descriptor is compatible with
another Descriptor with the same full_name()?

For example:

************
Scenario 1

Application 1:

message Foo
{
   optional int32 a = 1;
   optional int32 b = 2;
}

Application 2:

// updated but compatible Foo
message Foo
{
   optional int32 a = 1;
   optional int32 b = 2;
   optional int32 c = 3;
}

Application 3: Gets Foo from 1 & 2 via a FileDescriptorProto (which
are then converted to Descriptors via DescriptorPool::BuildFile() )
and wants to check that they are compatible.
************


************
Scenario 1

Application 1:

message Foo
{
   optional int32 a = 1;
   optional int32 b = 2;
}

Application 2:

// updated but incompatible Foo
message Foo
{
   optional int32 a = 1;
   optional string b = 2;
}

Application 3: Gets Foo from 1 & 2 via a FileDescriptorProto (which
are then converted to Descriptors via DescriptorPool::BuildFile() )
and wants to check that they are compatible.
************

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to