EnumDescriptor enumDescriptor = getEnumDescriptor(marshaller.getTypeName());
marshallerDelegate = new EnumMarshallerDelegate((EnumMarshaller) marshaller, enumDescriptor);
} else if (marshaller instanceof RawProtobufMarshaller) {
marshallerDelegate = new RawProtobufMarshallerDelegate((RawProtobufMarshaller) marshaller, this);
} else {
Descriptor messageDescriptor = getMessageDescriptor(marshaller.getTypeName());
marshallerDelegate = new MessageMarshallerDelegate((MessageMarshaller) marshaller, messageDescriptor);
}
marshallersByName.put(marshaller.getTypeName(), marshallerDelegate);
marshallersByClass.put(marshaller.getJavaClass(), marshallerDelegate);
}