@Test public void testPrimitiveSetConversionWhenNestedStructsDisabled() throws DescriptorValidationException { ThriftToDynamicProto<PrimitiveSetsStruct> thriftToProto = new ThriftToDynamicProto<PrimitiveSetsStruct>(PrimitiveSetsStruct.class); PrimitiveSetsStruct setsStruct = genPrimitiveSetsStruct(); Message msg = thriftToProto.convert(setsStruct); comparePrimitiveSetsStruct(setsStruct, msg); }
@SuppressWarnings("unchecked") public Message convert(T thriftObj) { return doConvert((TBase<?, ?>) Preconditions.checkNotNull(thriftObj, "Can not convert a null object")); }
ThriftToDynamicProto { @SuppressWarnings("unchecked") public Message convert(T thriftObj) { return doConvert((TBase<?, ?>) Preconditions.checkNotNull(thriftObj, "Can not convert a null object")); } }
ThriftToDynamicProto { @SuppressWarnings("unchecked") public Message convert(T thriftObj) { return doConvert((TBase<?, ?>) Preconditions.checkNotNull(thriftObj, "Can not convert a null object")); } ThriftToDynamicProto(Class<T> thriftClass);  ThriftToDynamicProto(Class<T> thriftClass,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes);  ThriftToDynamicProto(Class<T> thriftClass, List<Pair<String, Type>> extraFields);  ThriftToDynamicProto(Class<T> thriftClass,
                              List<Pair<String, Type>> extraFields,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes); }
ThriftToDynamicProto { @SuppressWarnings("unchecked") public Message convert(T thriftObj) { return doConvert((TBase<?, ?>) Preconditions.checkNotNull(thriftObj, "Can not convert a null object")); } ThriftToDynamicProto(Class<T> thriftClass);  ThriftToDynamicProto(Class<T> thriftClass,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes);  ThriftToDynamicProto(Class<T> thriftClass, List<Pair<String, Type>> extraFields);  ThriftToDynamicProto(Class<T> thriftClass,
                              List<Pair<String, Type>> extraFields,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes); Message.Builder getBuilder(Class<? extends TBase<?, ?>> thriftClass); @SuppressWarnings("unchecked") Message convert(T thriftObj); @SuppressWarnings("unchecked") Message doConvert(TBase<?, F> thriftObj); FieldDescriptor getFieldDescriptor(Class<? extends TBase<?, ?>> thriftClass,
                                            String fieldName); Descriptors.FileDescriptor getFileDescriptor(); }
ThriftToDynamicProto { @SuppressWarnings("unchecked") public Message convert(T thriftObj) { return doConvert((TBase<?, ?>) Preconditions.checkNotNull(thriftObj, "Can not convert a null object")); } ThriftToDynamicProto(Class<T> thriftClass);  ThriftToDynamicProto(Class<T> thriftClass,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes);  ThriftToDynamicProto(Class<T> thriftClass, List<Pair<String, Type>> extraFields);  ThriftToDynamicProto(Class<T> thriftClass,
                              List<Pair<String, Type>> extraFields,
                              boolean supportNestedObjects,
                              boolean ignoreUnsupportedTypes); Message.Builder getBuilder(Class<? extends TBase<?, ?>> thriftClass); @SuppressWarnings("unchecked") Message convert(T thriftObj); @SuppressWarnings("unchecked") Message doConvert(TBase<?, F> thriftObj); FieldDescriptor getFieldDescriptor(Class<? extends TBase<?, ?>> thriftClass,
                                            String fieldName); Descriptors.FileDescriptor getFileDescriptor();  }