android - convert protobuff class as model and store its value using realm -
i generating protobuf class using squareup wire protobuf libary here proto file syntax = "proto2"; package squareup.dinosaurs; option java_package = "com.squareup.dinosaurs"; message dinosaur { // common name of dinosaur, "stegosaurus". optional string name = 1; // urls images of dinosaur. repeated string picture_urls = 2; } and here auto generated code // code generated wire protocol buffer compiler, not edit. // source file: dinosaur/dinosaur.proto @ 8:1 package com.squareup.dinosaurs; import com.squareup.wire.fieldencoding; import com.squareup.wire.message; import com.squareup.wire.protoadapter; import com.squareup.wire.protoreader; import com.squareup.wire.protowriter; import java.io.ioexception; import java.lang.object; import java.lang.override; import java.lang.string; import java.lang.stringbuilder; import java.util.list; import okio.bytestring; public final class dinosaur extends message<dinosaur, dinosaur.builder...