Search in sources :

Example 1 with ExtendableMessageOrBuilder

use of com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder in project j2objc by google.

the class CompatibilityTest method testExtendableMessageOrBuilder.

public void testExtendableMessageOrBuilder() throws Exception {
    TypicalData.Builder builder = TypicalData.newBuilder().setMyInt(42);
    TypicalData data = builder.build();
    Object o = builder;
    ExtendableMessageOrBuilder emob = (ExtendableMessageOrBuilder) o;
    o = data;
    emob = (ExtendableMessageOrBuilder) o;
}
Also used : TypicalData(protos.TypicalData) ExtendableMessageOrBuilder(com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder)

Aggregations

ExtendableMessageOrBuilder (com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder)1 TypicalData (protos.TypicalData)1